\think\facadeFilesystem

Class Filesystem

Summary

Methods
Properties
Constants
instance()
make()
__callStatic()
disk()
getConfig()
getDiskConfig()
getDefaultDriver()
No public properties found
No constants found
createFacade()
getFacadeClass()
$alwaysNewInstance
N/A
No private methods found
No private properties found
N/A

Properties

$alwaysNewInstance

$alwaysNewInstance : bool

始终创建新的对象实例

Type

bool

Methods

instance()

instance(mixed  ...$args) : object

带参数实例化当前Facade类

Parameters

mixed $args variadic

Returns

object —

make()

make(string  $class, array|true  $args = [], bool  $newInstance = false) : object

调用类的实例

Parameters

string $class

类名或者标识

array|true $args

变量

bool $newInstance

是否每次创建新的实例

Returns

object —

__callStatic()

__callStatic(mixed  $method, mixed  $params) : mixed

Parameters

mixed $method
mixed $params

Returns

mixed —

disk()

disk(string  $name = null) : \think\filesystem\Driver

,null|string

Parameters

string $name = null

Returns

\think\filesystem\Driver —

getConfig()

getConfig(null|string  $name = null, mixed  $default = null) : mixed

获取缓存配置

Parameters

null|string $name = null
mixed $default = null

Returns

mixed —

getDiskConfig()

getDiskConfig(string  $disk, null  $name = null, null  $default = null) : array

获取磁盘配置

Parameters

string $disk
null $name = null
null $default = null

Returns

array —

getDefaultDriver()

getDefaultDriver() : string|null

默认驱动

Returns

string|null —

createFacade()

createFacade(string  $class = '', array  $args = [], bool  $newInstance = false) : object

创建Facade实例

Parameters

string $class

类名或标识

array $args

变量

bool $newInstance

是否每次创建新的实例

Returns

object —

getFacadeClass()

getFacadeClass() : string

获取当前Facade对应类名

Returns

string —