ContainerInterface
in
Table of Contents
Methods
- aliasList() : array<string|int, mixed>
- DIコンテナに登録されている一覧を取得
- bind() : void
- register service
- bindMake() : mixed
- create service
- bootstrap() : mixed
- register service bootstrap function
- exists() : bool
- DIコンテナに登録されているか判定
- make() : mixed
- get service
- newInstance() : mixed
- create instance
- singleton() : void
- register service as singleton
- singletonMake() : mixed
- create service as singleton
Methods
aliasList()
DIコンテナに登録されている一覧を取得
public
aliasList() : array<string|int, mixed>
Return values
array<string|int, mixed>bind()
register service
public
bind(string $alias, string|callable $class[, array<string|int, mixed> $arguments = [] ]) : void
Parameters
- $alias : string
- $class : string|callable
- $arguments : array<string|int, mixed> = []
bindMake()
create service
public
bindMake(string $alias) : mixed
Parameters
- $alias : string
bootstrap()
register service bootstrap function
public
bootstrap(string $alias, callable $callback) : mixed
Parameters
- $alias : string
- $callback : callable
exists()
DIコンテナに登録されているか判定
public
exists(string $alias) : bool
Parameters
- $alias : string
Return values
boolmake()
get service
public
make(string $alias) : mixed
Parameters
- $alias : string
Tags
newInstance()
create instance
public
newInstance(string|callable $class[, array<string|int, mixed> $arguments = [] ]) : mixed
Parameters
- $class : string|callable
- $arguments : array<string|int, mixed> = []
singleton()
register service as singleton
public
singleton(string $alias, string|callable $class[, array<string|int, mixed> $arguments = [] ]) : void
Parameters
- $alias : string
- $class : string|callable
- $arguments : array<string|int, mixed> = []
singletonMake()
create service as singleton
public
singletonMake(string $alias) : mixed
Parameters
- $alias : string