Documentation

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
author

Kevin Bond kevinbond@gmail.com

Table of Contents

Properties

$container  : ContainerInterface

Methods

getSubscribedServices()  : array<string|int, mixed>
setContainer()  : ContainerInterface|null

Properties

Methods

getSubscribedServices()

public static getSubscribedServices() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results