Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener
The TemplateListener class handles the @Template annotation.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class TemplateListener
implements
EventSubscriberInterface
{
- // members
- protected ContainerInterface $container;
- // methods
- public void __construct()
- public void onKernelController()
- public void onKernelView()
- public static void getSubscribedEvents()
Hierarchy
Members
protected
Methods
public
- __construct() — Constructor.
- getSubscribedEvents()
- onKernelController() — Guesses the template name to render and its variables and adds them to the request object.
- onKernelView() — Renders the template and initializes a new response object with the rendered template content.