public function onKernelController(FilterControllerEvent $event)
    {
        $request = $event->getRequest();

        if ($template = $this->getTemplate($request, $event->getController())) {
            $request->attributes->set('_template', $template);
        }
    }
public function onKernelController(FilterControllerEvent $event)
    {
        $request = $event->getRequest();

        if ($template = $this->getTemplate($request, $event->getController())) {
            $request->attributes->set('_template', $template);
        }
    }
public function onKernelController ( FilterControllerEvent $ event ) { $ request = $ event -> getRequest ( ) ; if ( $ template = $ this -> getTemplate ( $ request , $ event -> getController ( ) ) ) { $ request -> attributes -> set ( '_template' , $ template ) ; } }
Handles Kernel Controller events

@param FilterControllerEvent $event
Handles Kernel Controller events