Méthode |
Description |
|
addScope ( Symfony\Component\DependencyInjection\ScopeInterface $scope ) : void |
Adds a scope to the container |
|
enterScope ( string $name ) : void |
Enters the given scope |
|
get ( string $id, integer $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE ) : object |
Gets a service. |
|
getParameter ( string $name ) : mixed |
Gets a parameter. |
|
has ( string $id ) : boolean |
Returns true if the given service is defined. |
|
hasParameter ( string $name ) : boolean |
Checks if a parameter exists. |
|
hasScope ( string $name ) : boolean |
Whether this container has the given scope |
|
isScopeActive ( string $name ) : boolean |
Determines whether the given scope is currently active. |
|
leaveScope ( string $name ) : void |
Leaves the current scope, and re-enters the parent scope |
|
set ( string $id, object $service, string $scope = self::SCOPE_CONTAINER ) |
Sets a service. |
|
setParameter ( string $name, mixed $value ) |
Sets a parameter. |
|