\think\swoole\facadeApplication

Summary

Methods
Properties
Constants
bind()
instance()
make()
__callStatic()
initialize()
swoole()
No public properties found
No constants found
createFacade()
getFacadeClass()
$bind
$alwaysNewInstance
N/A
No private methods found
No private properties found
N/A

Properties

$bind

$bind : array

绑定对象

Type

array

$alwaysNewInstance

$alwaysNewInstance : boolean

始终创建新的对象实例

Type

boolean

Methods

bind()

bind(string|array  $name, string  $class = null) : object

绑定类的静态代理

Parameters

string|array $name

类标识

string $class

类名

Returns

object

instance()

instance(  $args) : mixed

带参数实例化当前Facade类

Parameters

$args

Returns

mixed

make()

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

调用类的实例

Parameters

string $class

类名或者标识

array|true $args

变量

boolean $newInstance

是否每次创建新的实例

Returns

mixed

__callStatic()

__callStatic(  $method,   $params) 

Parameters

$method
$params

initialize()

initialize() : void

static 初始化应用

swoole()

swoole(\Request  $request, \Response  $response) : void

static 处理Swoole请求

Parameters

\Request $request
\Response $response

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