public function onEvent(Event $event): void
    {
        if (!$event instanceof GetResponseEvent || !$this->injected) {
            if (null !== ($filter = $this->getFilter())) {
                $this->injectParameters($filter);
            }
        }
    }
public function onEvent(Event $event): void
    {
        if (!$event instanceof GetResponseEvent || !$this->injected) {
            if (null !== ($filter = $this->getFilter())) {
                $this->injectParameters($filter);
            }
        }
    }
public function onEvent ( Event $ event ) : void { if ( ! $ event instanceof GetResponseEvent || ! $ this -> injected ) { if ( null !== ( $ filter = $ this -> getFilter ( ) ) ) { $ this -> injectParameters ( $ filter ) ; } } }
Action on the event.

@param Event $event The event
Action on the event .