public function __construct($eventName, ContainerInterface $container, $serviceId, $method = null, $band = '') { $this->container = $container; $this->serviceId = $serviceId; $this->method = $method; parent::__construct($eventName, $band); }
public function __construct($eventName, callable $listener, EventDispatcherInterface $eventDispatcher, $band = null) { $this->listener = $listener; $this->eventDispatcher = $eventDispatcher; parent::__construct($eventName, $band); }