\think\facadeFilesystem

Class Filesystem

Summary

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

Properties

$alwaysNewInstance

$alwaysNewInstance : bool

始终创建新的对象实例

Type

bool

$instance

$instance

Methods

__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 —

getFacadeClass()

getFacadeClass() : string

获取当前Facade对应类名

Returns

string —

createFacade()

createFacade(bool  $newInstance = false) : object

创建Facade实例

Parameters

bool $newInstance

是否每次创建新的实例

Returns

object —