Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher::addSubscriberService
Adds a service as event subscriber
Signature
public function addSubscriberService(string
$serviceId,
string
$class )
Parameters
$serviceId
— string- The service ID of the subscriber service
$class
— string- The service's class name (which must implement EventSubscriberInterface)