interface ServiceInterface implements FilesystemInterface (View source)

Methods

array|bool
store(UploadFile $file, string|null $location = null, array $option = [])

Store directly the upload file

bool
append(string $file, string $content)

Write following a file specify

bool
prepend(string $file, string $content)

Write to the beginning of a file specify

bool
put(string $file, string $content)

Put other file content in given file

bool
delete(string $file)

Delete file

array
files(string $dirname)

Alias sur readInDir

array
directories(string $dirname)

Read the contents of the file

bool
makeDirectory(string $dirname, int $mode = 0777)

Create a directory

string|null
get(string $filename)

Get file content

bool
copy(string $target, string $source)

Copy the contents of a source file to a target file.

bool
move(string $target, string $source)

Rénme or move a source file to a target file.

bool
exists(string $filename)

Check the existence of a file

bool
isFile(string $filename)

isFile alias of is_file.

bool
isDirectory(string $dirname)

isDirectory alias of is_dir.

string
path(string $filename)

Resolves a path.

configure(array $config)

Configure service

Details

array|bool store(UploadFile $file, string|null $location = null, array $option = [])

Store directly the upload file

Parameters

UploadFile $file
string|null $location
array $option

Return Value

array|bool

Exceptions

InvalidArgumentException

bool append(string $file, string $content)

Write following a file specify

Parameters

string $file
string $content

Return Value

bool

bool prepend(string $file, string $content)

Write to the beginning of a file specify

Parameters

string $file
string $content

Return Value

bool

Exceptions

bool put(string $file, string $content)

Put other file content in given file

Parameters

string $file
string $content

Return Value

bool

bool delete(string $file)

Delete file

Parameters

string $file

Return Value

bool

array files(string $dirname)

Alias sur readInDir

Parameters

string $dirname

Return Value

array

array directories(string $dirname)

Read the contents of the file

Parameters

string $dirname

Return Value

array

bool makeDirectory(string $dirname, int $mode = 0777)

Create a directory

Parameters

string $dirname
int $mode

Return Value

bool

string|null get(string $filename)

Get file content

Parameters

string $filename

Return Value

string|null

bool copy(string $target, string $source)

Copy the contents of a source file to a target file.

Parameters

string $target
string $source

Return Value

bool

bool move(string $target, string $source)

Rénme or move a source file to a target file.

Parameters

string $target
string $source

Return Value

bool

bool exists(string $filename)

Check the existence of a file

Parameters

string $filename

Return Value

bool

bool isFile(string $filename)

isFile alias of is_file.

Parameters

string $filename

Return Value

bool

bool isDirectory(string $dirname)

isDirectory alias of is_dir.

Parameters

string $dirname

Return Value

bool

string path(string $filename)

Resolves a path.

Give the absolute path of a path

Parameters

string $filename

Return Value

string

static FilesystemInterface configure(array $config)

Configure service

Parameters

array $config

Return Value

FilesystemInterface