Zhamao Framework  3.0.0-beta1
A high-performance chatbot + web framework
BoundMethod类 参考

静态 Public 成员函数

static call (ContainerInterface $container, callable|string $callback, array $parameters=[], string $default_method=null)
 

静态 Protected 成员函数

static getMethodDependencies (ContainerInterface $container, callable|string $callback, array $parameters=[])
 
static addDependencyForCallParameter (ContainerInterface $container, \ReflectionParameter $parameter, array &$parameters, array &$dependencies)
 

成员函数说明

◆ addDependencyForCallParameter()

static addDependencyForCallParameter ( ContainerInterface  $container,
\ReflectionParameter  $parameter,
array &  $parameters,
array &  $dependencies 
)
staticprotected

Get the dependency for the given call parameter.

异常
EntryResolutionException
函数调用图:

◆ call()

static call ( ContainerInterface  $container,
callable|string  $callback,
array  $parameters = [],
string  $default_method = null 
)
static

调用指定闭包、类方法并注入依赖

参数
Container$container
返回
mixed
异常
EntryResolutionException|
函数调用图:

◆ getMethodDependencies()

static getMethodDependencies ( ContainerInterface  $container,
callable|string  $callback,
array  $parameters = [] 
)
staticprotected

Get all dependencies for a given method.

异常
函数调用图:

该类的文档由以下文件生成: