ContainerInterface
ContainerInterface
interface ContainerInterface
ContainerInterface is the interface implemented by service container classes.
Constants
EXCEPTION_ON_INVALID_REFERENCE | |
NULL_ON_INVALID_REFERENCE | |
IGNORE_ON_INVALID_REFERENCE | |
SCOPE_CONTAINER | |
SCOPE_PROTOTYPE |
Methods
set(string $id, object $service, string $scope = self::SCOPE_CONTAINER) Sets a service. | ||
object | get(string $id, int $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE) Gets a service. |