extend('data_collector.templates', function (array $templates) { $templates[] = array('ajax', '@WebProfiler/Collector/ajax.html.twig'); return $templates; }); $app['data_collectors'] = $app->extend('data_collectors', function ($collectors) { $collectors['ajax'] = function () { return new AjaxDataCollector(); }; return $collectors; }); } } /** * Bootstraps the application. * * This method is called after all services are registered * and should be used for "dynamic" configuration (whenever * a service must be requested). */ public function boot(Application $app) { // TODO: Implement boot() method. } }