ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
__construct (array $values=[]) | |
Create new container. More... | |
get ($id) | |
Finds an entry of the container by its identifier and returns it. More... | |
has ($id) | |
Returns true if the container can return an entry for the given identifier. More... | |
__get ($name) | |
__isset ($name) | |
Public Member Functions inherited from Pimple\Container | |
__construct (array $values=array()) | |
Instantiate the container. More... | |
offsetSet ($id, $value) | |
Sets a parameter or an object. More... | |
offsetGet ($id) | |
Gets a parameter or an object. More... | |
offsetExists ($id) | |
Checks if a parameter or an object is set. More... | |
offsetUnset ($id) | |
Unsets a parameter or an object. More... | |
factory ($callable) | |
Marks a callable as being a factory service. More... | |
protect ($callable) | |
Protects a callable from being interpreted as a service. More... | |
raw ($id) | |
Gets a parameter or the closure defining an object. More... | |
extend ($id, $callable) | |
Extends an object definition. More... | |
keys () | |
Returns all defined value names. More... | |
register (ServiceProviderInterface $provider, array $values=array()) | |
Registers a service provider. More... | |
Private Member Functions | |
registerDefaultServices ($userSettings) | |
This function registers the default services that Slim needs to work. More... | |
exceptionThrownByContainer (\InvalidArgumentException $exception) | |
Tests whether an exception needs to be recast for compliance with Container-Interop. More... | |
Private Attributes | |
$defaultSettings | |
Definition at line 45 of file Container.php.
Slim\Container::__construct | ( | array | $values = [] | ) |
Create new container.
array | $values | The parameters or objects. |
Definition at line 67 of file Container.php.
Slim\Container::__get | ( | $name | ) |
Definition at line 170 of file Container.php.
References $name.
Slim\Container::__isset | ( | $name | ) |
Definition at line 175 of file Container.php.
References $name.
|
private |
Tests whether an exception needs to be recast for compliance with Container-Interop.
This will be if the exception was thrown by Pimple.
\InvalidArgumentException | $exception |
Definition at line 145 of file Container.php.
Slim\Container::get | ( | $id | ) |
Finds an entry of the container by its identifier and returns it.
string | $id | Identifier of the entry to look for. |
ContainerValueNotFoundException | No entry was found for this identifier. |
ContainerException | Error while retrieving the entry. |
Implements Psr\Container\ContainerInterface.
Definition at line 117 of file Container.php.
References $id.
Slim\Container::has | ( | $id | ) |
Returns true if the container can return an entry for the given identifier.
Returns false otherwise.
string | $id | Identifier of the entry to look for. |
Implements Psr\Container\ContainerInterface.
Definition at line 160 of file Container.php.
References $id.
|
private |
This function registers the default services that Slim needs to work.
All services are shared - that is, they are registered such that the same instance is returned on subsequent calls.
array | $userSettings | Associative array of application settings |
This service MUST return an array or an instance of .
Definition at line 85 of file Container.php.
|
private |
Definition at line 52 of file Container.php.