|
Zhamao Framework
3.0.0-beta1
A high-performance chatbot + web framework
|
Public 成员函数 | |
| getParent () | |
| has (string $id) | |
| make (string $abstract, array $parameters=[]) | |
Public 成员函数 继承自 ContainerInterface | |
| bound (string $abstract) | |
| alias (string $abstract, string $alias) | |
| bind (string $abstract, $concrete=null, bool $shared=false) | |
| bindIf (string $abstract, $concrete=null, bool $shared=false) | |
| singleton (string $abstract, $concrete=null) | |
| singletonIf (string $abstract, $concrete=null) | |
| instance (string $abstract, $instance) | |
| factory (string $abstract) | |
| flush () | |
| call (callable $callback, array $parameters=[], string $default_method=null) | |
| getParent | ( | ) |
获取父容器
| has | ( | string | $id | ) |
Returns true if the container can return an entry for the given identifier. Returns false otherwise.
has($id) returning true does not mean that get($id) will not throw an exception. It does however mean that get($id) will not throw a NotFoundExceptionInterface.
| string | $id | identifier of the entry to look for |
| make | ( | string | $abstract, |
| array | $parameters = [] |
||
| ) |
获取一个绑定的实例
@template T
| class-string<T> | $abstract 类或接口名 | |
| array | $parameters | 参数 |
实现了 ContainerInterface.