TaggedContainerInterface

TaggedContainerInterface

interface TaggedContainerInterface implements ContainerInterface

TaggedContainerInterface is the interface implemented when a container knows how to deals with tags.

Methods

set(string $id, object $service, string $scope = self::SCOPE_CONTAINER)

Sets a service.

from ContainerInterface
object get(string $id, int $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE)

Gets a service.

登录查看完整内容