ServiceMethodsSubscriberTrait
Implementation of ServiceSubscriberInterface that determines subscribed services from methods that have the #[SubscribedService] attribute.
Service ids are available as "ClassName::methodName" so that the implementation
of subscriber methods can be just return $this->container->get(__METHOD__);.
Tags
Table of Contents
Properties
Methods
- getSubscribedServices() : array<string|int, mixed>
 - setContainer() : ContainerInterface|null
 
Properties
$container
    protected
        ContainerInterface
    $container
    
    
    
    
    
Methods
getSubscribedServices()
    public
            static        getSubscribedServices() : array<string|int, mixed>
    Return values
array<string|int, mixed>setContainer()
    public
                    setContainer(ContainerInterface $container) : ContainerInterface|null
    Parameters
- $container : ContainerInterface
 
Attributes
- #[Required]