\thinkFacade

Facade管理类

Summary

Methods
Properties
Constants
instance()
make()
__callStatic()
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 : boolean

始终创建新的对象实例

Type

boolean

Methods

instance()

instance(  $args) : object

带参数实例化当前Facade类

Parameters

$args

Returns

object

make()

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

调用类的实例

Parameters

string $class

类名或者标识

array|true $args

变量

boolean $newInstance

是否每次创建新的实例

Returns

object

__callStatic()

__callStatic(  $method,   $params) 

Parameters

$method
$params

createFacade()

createFacade(string  $class = '', array  $args = array(), boolean  $newInstance = false) : object

创建Facade实例

Parameters

string $class

类名或标识

array $args

变量

boolean $newInstance

是否每次创建新的实例

Returns

object

getFacadeClass()

getFacadeClass() : string

获取当前Facade对应类名

Returns

string