mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-07 00:35:36 +08:00
12 KiB
12 KiB
ZM\Container\Container
getParent
public function getParent(): ZM\Container\ContainerInterface
描述
作者很懒,什么也没有说
返回
| 类型 | 描述 |
|---|---|
| ZM\Container\ContainerInterface |
has
public function has(string $id): bool
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| id | string |
返回
| 类型 | 描述 |
|---|---|
| bool |
make
public function make(string $abstract, array $parameters): mixed
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| abstract | string | |
| parameters | array |
返回
| 类型 | 描述 |
|---|---|
| mixed |
getInstance
public function getInstance(mixed $args): object
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| args | mixed |
返回
| 类型 | 描述 |
|---|---|
| object |
bound
public function bound(string $abstract): bool
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| abstract | string |
返回
| 类型 | 描述 |
|---|---|
| bool |
getAlias
public function getAlias(string $abstract): string
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| abstract | string |
返回
| 类型 | 描述 |
|---|---|
| string |
alias
public function alias(string $abstract, string $alias): void
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| abstract | string | |
| alias | string |
返回
| 类型 | 描述 |
|---|---|
| void |
bind
public function bind(string $abstract, mixed $concrete, bool $shared): void
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| abstract | string | |
| concrete | mixed | |
| shared | bool |
返回
| 类型 | 描述 |
|---|---|
| void |
bindIf
public function bindIf(string $abstract, mixed $concrete, bool $shared): void
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| abstract | string | |
| concrete | mixed | |
| shared | bool |
返回
| 类型 | 描述 |
|---|---|
| void |
singleton
public function singleton(string $abstract, mixed $concrete): void
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| abstract | string | |
| concrete | mixed |
返回
| 类型 | 描述 |
|---|---|
| void |
singletonIf
public function singletonIf(string $abstract, mixed $concrete): void
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| abstract | string | |
| concrete | mixed |
返回
| 类型 | 描述 |
|---|---|
| void |
instance
public function instance(string $abstract, mixed $instance): mixed
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| abstract | string | |
| instance | mixed |
返回
| 类型 | 描述 |
|---|---|
| mixed |
factory
public function factory(string $abstract): Closure
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| abstract | string |
返回
| 类型 | 描述 |
|---|---|
| Closure |
flush
public function flush(): void
描述
作者很懒,什么也没有说
返回
| 类型 | 描述 |
|---|---|
| void |
traitMake
public function traitMake(string $abstract, array $parameters): mixed
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| abstract | string | |
| parameters | array |
返回
| 类型 | 描述 |
|---|---|
| mixed |
build
public function build(mixed $concrete): mixed
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| concrete | mixed |
返回
| 类型 | 描述 |
|---|---|
| mixed |
call
public function call(mixed $callback, array $parameters, string $default_method): mixed
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| callback | mixed | |
| parameters | array | |
| default_method | string |
返回
| 类型 | 描述 |
|---|---|
| mixed |
get
public function get(string $id): mixed
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| id | string |
返回
| 类型 | 描述 |
|---|---|
| mixed |
extend
public function extend(string $abstract, Closure $closure): void
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| abstract | string | |
| closure | Closure |
返回
| 类型 | 描述 |
|---|---|
| void |
getLogPrefix
public function getLogPrefix(): string
描述
作者很懒,什么也没有说
返回
| 类型 | 描述 |
|---|---|
| string |
setLogPrefix
public function setLogPrefix(string $prefix): void
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| prefix | string |
返回
| 类型 | 描述 |
|---|---|
| void |
getExtenders
public function getExtenders(string $abstract): array
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| abstract | string |
返回
| 类型 | 描述 |
|---|---|
| array |
isAlias
public function isAlias(string $name): bool
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| name | string |
返回
| 类型 | 描述 |
|---|---|
| bool |
dropStaleInstances
public function dropStaleInstances(string $abstract): void
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| abstract | string |
返回
| 类型 | 描述 |
|---|---|
| void |
getClosure
public function getClosure(string $abstract, string $concrete): Closure
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| abstract | string | |
| concrete | string |
返回
| 类型 | 描述 |
|---|---|
| Closure |
getLastParameterOverride
public function getLastParameterOverride(): array
描述
作者很懒,什么也没有说
返回
| 类型 | 描述 |
|---|---|
| array |
notInstantiable
public function notInstantiable(string $concrete, string $reason): void
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| concrete | string | |
| reason | string |
返回
| 类型 | 描述 |
|---|---|
| void |
resolveDependencies
public function resolveDependencies(array $dependencies): array
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| dependencies | array |
返回
| 类型 | 描述 |
|---|---|
| array |
hasParameterOverride
public function hasParameterOverride(ReflectionParameter $parameter): bool
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| parameter | ReflectionParameter |
返回
| 类型 | 描述 |
|---|---|
| bool |
getParameterOverride
public function getParameterOverride(ReflectionParameter $parameter): mixed
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| parameter | ReflectionParameter |
返回
| 类型 | 描述 |
|---|---|
| mixed |
hasParameterTypeOverride
public function hasParameterTypeOverride(ReflectionParameter $parameter): bool
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| parameter | ReflectionParameter |
返回
| 类型 | 描述 |
|---|---|
| bool |
getParameterTypeOverride
public function getParameterTypeOverride(ReflectionParameter $parameter): mixed
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| parameter | ReflectionParameter |
返回
| 类型 | 描述 |
|---|---|
| mixed |
resolvePrimitive
public function resolvePrimitive(ReflectionParameter $parameter): mixed
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| parameter | ReflectionParameter |
返回
| 类型 | 描述 |
|---|---|
| mixed |
resolveClass
public function resolveClass(ReflectionParameter $parameter): mixed
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| parameter | ReflectionParameter |
返回
| 类型 | 描述 |
|---|---|
| mixed |
getConcrete
public function getConcrete(string $abstract): mixed
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| abstract | string |
返回
| 类型 | 描述 |
|---|---|
| mixed |
isBuildable
public function isBuildable(mixed $concrete, string $abstract): bool
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| concrete | mixed | |
| abstract | string |
返回
| 类型 | 描述 |
|---|---|
| bool |
isShared
public function isShared(string $abstract): bool
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| abstract | string |
返回
| 类型 | 描述 |
|---|---|
| bool |
shouldLog
public function shouldLog(): bool
描述
作者很懒,什么也没有说
返回
| 类型 | 描述 |
|---|---|
| bool |
log
public function log(string $message): void
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| message | string |
返回
| 类型 | 描述 |
|---|---|
| void |