ContainerInterface
ContainerInterface
interface ContainerInterface implements ContainerInterface
ContainerInterface is the interface implemented by service container classes.
Constants
EXCEPTION_ON_INVALID_REFERENCE | |
NULL_ON_INVALID_REFERENCE | |
IGNORE_ON_INVALID_REFERENCE |
Methods
set(string $id, object $service) Sets a service. | ||
object | get(string $id, int $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE) Gets a service. | |
bool | has(string $id) Returns true if the given service is defined. | 登录查看完整内容 |