$this->dispatcher->
addSubscriber($subscriber);
} public function removeListener(string
$eventName, callable
$listener): void
{ /** @var callable(object): void $listener - Specify generic callback interface callers can provide more specific implementations */
$this->dispatcher->
removeListener($eventName,
$listener);
} public function removeSubscriber(EventSubscriberInterface
$subscriber): void
{ $this->dispatcher->
removeSubscriber($subscriber);
} /**
* @return array<array-key, array<array-key, callable(object): void>|callable(object): void>
*/
public function getListeners(?string
$eventName = null
): array
{ return $this->dispatcher->
getListeners($eventName);
} public function getListenerPriority(string
$eventName, callable
$listener): ?int
{