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__);.
- author Kevin Bond
Trait
| Methods |
| public static getSubscribedServices() : array |
| public setContainer(Psr\Container\ContainerInterface $container) : ?Psr\Container\ContainerInterface |
| Properties |
| protected Psr\Container\ContainerInterface $container |
| Methods |
| public static getSubscribedServices() : array |