\think\testsNullDriver

Class Driver

Summary

Methods
Properties
Constants
__construct()
path()
putFile()
putFileAs()
__call()
No public properties found
No constants found
createCacheStore()
createAdapter()
createFilesystem()
$cache
$filesystem
$config
N/A
No private methods found
No private properties found
N/A

Properties

$cache

$cache : \think\Cache

Type

Cache

$filesystem

$filesystem : \League\Flysystem\Filesystem

Type

Filesystem

$config

$config : array

配置参数

Type

array

Methods

__construct()

__construct(\think\Cache  $cache, array  $config) : mixed

Parameters

\think\Cache $cache
array $config

Returns

mixed —

path()

path(string  $path) : string

获取文件完整路径

Parameters

string $path

Returns

string —

putFile()

putFile(string  $path, \think\File  $file, null|string|\Closure  $rule = null, array  $options = []) : bool|string

保存文件

Parameters

string $path

路径

\think\File $file

文件

null|string|\Closure $rule

文件名规则

array $options

参数

Returns

bool|string —

putFileAs()

putFileAs(string  $path, \think\File  $file, string  $name, array  $options = []) : bool|string

指定文件名保存文件

Parameters

string $path

路径

\think\File $file

文件

string $name

文件名

array $options

参数

Returns

bool|string —

__call()

__call(mixed  $method, mixed  $parameters) : mixed

Parameters

mixed $method
mixed $parameters

Returns

mixed —

createCacheStore()

createCacheStore(mixed  $config) : mixed

Parameters

mixed $config

Returns

mixed —

createAdapter()

createAdapter() : \League\Flysystem\AdapterInterface

Returns

\League\Flysystem\AdapterInterface —

createFilesystem()

createFilesystem(\League\Flysystem\AdapterInterface  $adapter) : \League\Flysystem\Filesystem

Parameters

\League\Flysystem\AdapterInterface $adapter

Returns

\League\Flysystem\Filesystem —