Registry
App\Shared\Services\Registry
Method | Description | Type | Parameters | Return |
---|---|---|---|---|
prop | Retrieves a sub-key from the registry throws ContainerExceptionInterface throws NotFoundExceptionInterface |
public | string $object name of an object to retrieve a key from bool $key (optional) key to retrieve from the object mixed|null $default (optional) default value for missing objects or keys |
mixed |
get | inheritDoc | public | ||
has | inheritDoc | public | ||
set | Sets a registry parameter If a registry parameter with the name already exists the value will be overridden |
public | string $id A registry parameter name mixed $value A registry parameter value |
|
add | Sets an array of registry parameters If an existing registry parameter name matches any of the keys in the supplied array, the associated value will be overridden |
public | array $parameters An associative array of registry parameters and their associated values | |
getAll | Retrieves all configuration parameters |
public | array An associative array of configuration parameters | |
clear | Clears all current container parameters | public |