src/EventSubscriber.php
protected function listen(string $event, string $methodName, int $priority = 0): EventListener
    {
        return new EventListener($event, [$this, $methodName], $priority);
    }
protected function listen(string $event, string $methodName, int $priority = 0): EventListener
    {
        return new EventListener($event, [$this, $methodName], $priority);
    }
protected function listen ( string $ event , string $ methodName , int $ priority = 0 ) : EventListener { return new EventListener ( $ event , [ $ this , $ methodName ] , $ priority ) ; }
Create an event listener and map it to a method of this class
Create an event listener and map it to a method of this class