Property | Type | Description | |
---|---|---|---|
$tags | array | Store identifiers os services by tags | |
$values | array | List of services in the container |
Method | Description | |
---|---|---|
get ( string $id ) : mixed | Return a service or value from the container | |
getByTag ( string $tag ) : array | Return list of service tagged with marker | |
has ( string $id ) : boolean | Checks if item with specified id is present in the container | |
set ( string $id, mixed $value, array $tags = [] ) | Set a service into the container | |
share ( string $id, callable $value, array $tags = [] ) | Set a shared value in the container |
protected array $tags | ||
return | array |
protected array $values | ||
return | array |