/** * Register view listeners * * @param Application $app */ protected function registerViewListeners(Application $app) { $app->view(new TwigRenderingListener($app['twig'])); }