ZM\Container\WorkerContainer
getInstance
public function getInstance(mixed $args): object
描述
作者很懒,什么也没有说
参数
返回
bound
public function bound(string $abstract): bool
描述
作者很懒,什么也没有说
参数
返回
getAlias
public function getAlias(string $abstract): string
描述
作者很懒,什么也没有说
参数
返回
alias
public function alias(string $abstract, string $alias): void
描述
作者很懒,什么也没有说
参数
| 名称 |
类型 |
描述 |
| abstract |
string |
|
| alias |
string |
|
返回
bind
public function bind(string $abstract, mixed $concrete, bool $shared): void
描述
作者很懒,什么也没有说
参数
| 名称 |
类型 |
描述 |
| abstract |
string |
|
| concrete |
mixed |
|
| shared |
bool |
|
返回
bindIf
public function bindIf(string $abstract, mixed $concrete, bool $shared): void
描述
作者很懒,什么也没有说
参数
| 名称 |
类型 |
描述 |
| abstract |
string |
|
| concrete |
mixed |
|
| shared |
bool |
|
返回
singleton
public function singleton(string $abstract, mixed $concrete): void
描述
作者很懒,什么也没有说
参数
| 名称 |
类型 |
描述 |
| abstract |
string |
|
| concrete |
mixed |
|
返回
singletonIf
public function singletonIf(string $abstract, mixed $concrete): void
描述
作者很懒,什么也没有说
参数
| 名称 |
类型 |
描述 |
| abstract |
string |
|
| concrete |
mixed |
|
返回
instance
public function instance(string $abstract, mixed $instance): mixed
描述
作者很懒,什么也没有说
参数
| 名称 |
类型 |
描述 |
| abstract |
string |
|
| instance |
mixed |
|
返回
factory
public function factory(string $abstract): Closure
描述
作者很懒,什么也没有说
参数
返回
flush
public function flush(): void
描述
作者很懒,什么也没有说
返回
make
public function make(string $abstract, array $parameters): mixed
描述
作者很懒,什么也没有说
参数
| 名称 |
类型 |
描述 |
| abstract |
string |
|
| parameters |
array |
|
返回
build
public function build(mixed $concrete): mixed
描述
作者很懒,什么也没有说
参数
返回
call
public function call(mixed $callback, array $parameters, string $default_method): mixed
描述
作者很懒,什么也没有说
参数
| 名称 |
类型 |
描述 |
| callback |
mixed |
|
| parameters |
array |
|
| default_method |
string |
|
返回
get
public function get(string $id): mixed
描述
作者很懒,什么也没有说
参数
返回
has
public function has(string $id): bool
描述
作者很懒,什么也没有说
参数
返回
extend
public function extend(string $abstract, Closure $closure): void
描述
作者很懒,什么也没有说
参数
| 名称 |
类型 |
描述 |
| abstract |
string |
|
| closure |
Closure |
|
返回
getLogPrefix
public function getLogPrefix(): string
描述
作者很懒,什么也没有说
返回
setLogPrefix
public function setLogPrefix(string $prefix): void
描述
作者很懒,什么也没有说
参数
返回
getExtenders
public function getExtenders(string $abstract): array
描述
作者很懒,什么也没有说
参数
返回
isAlias
public function isAlias(string $name): bool
描述
作者很懒,什么也没有说
参数
返回
dropStaleInstances
public function dropStaleInstances(string $abstract): void
描述
作者很懒,什么也没有说
参数
返回
getClosure
public function getClosure(string $abstract, string $concrete): Closure
描述
作者很懒,什么也没有说
参数
| 名称 |
类型 |
描述 |
| abstract |
string |
|
| concrete |
string |
|
返回
getLastParameterOverride
public function getLastParameterOverride(): array
描述
作者很懒,什么也没有说
返回
notInstantiable
public function notInstantiable(string $concrete, string $reason): void
描述
作者很懒,什么也没有说
参数
| 名称 |
类型 |
描述 |
| concrete |
string |
|
| reason |
string |
|
返回
resolveDependencies
public function resolveDependencies(array $dependencies): array
描述
作者很懒,什么也没有说
参数
| 名称 |
类型 |
描述 |
| dependencies |
array |
|
返回
hasParameterOverride
public function hasParameterOverride(ReflectionParameter $parameter): bool
描述
作者很懒,什么也没有说
参数
| 名称 |
类型 |
描述 |
| parameter |
ReflectionParameter |
|
返回
getParameterOverride
public function getParameterOverride(ReflectionParameter $parameter): mixed
描述
作者很懒,什么也没有说
参数
| 名称 |
类型 |
描述 |
| parameter |
ReflectionParameter |
|
返回
hasParameterTypeOverride
public function hasParameterTypeOverride(ReflectionParameter $parameter): bool
描述
作者很懒,什么也没有说
参数
| 名称 |
类型 |
描述 |
| parameter |
ReflectionParameter |
|
返回
getParameterTypeOverride
public function getParameterTypeOverride(ReflectionParameter $parameter): mixed
描述
作者很懒,什么也没有说
参数
| 名称 |
类型 |
描述 |
| parameter |
ReflectionParameter |
|
返回
resolvePrimitive
public function resolvePrimitive(ReflectionParameter $parameter): mixed
描述
作者很懒,什么也没有说
参数
| 名称 |
类型 |
描述 |
| parameter |
ReflectionParameter |
|
返回
resolveClass
public function resolveClass(ReflectionParameter $parameter): mixed
描述
作者很懒,什么也没有说
参数
| 名称 |
类型 |
描述 |
| parameter |
ReflectionParameter |
|
返回
getConcrete
public function getConcrete(string $abstract): mixed
描述
作者很懒,什么也没有说
参数
返回
isBuildable
public function isBuildable(mixed $concrete, string $abstract): bool
描述
作者很懒,什么也没有说
参数
| 名称 |
类型 |
描述 |
| concrete |
mixed |
|
| abstract |
string |
|
返回
isShared
public function isShared(string $abstract): bool
描述
作者很懒,什么也没有说
参数
返回
shouldLog
public function shouldLog(): bool
描述
作者很懒,什么也没有说
返回
log
public function log(string $message): void
描述
作者很懒,什么也没有说
参数
返回