@@ -24,10 +24,10 @@ discard block |
||
24 | 24 | */ |
25 | 25 | public function register(Application $app) |
26 | 26 | { |
27 | - $app["debesha.doctrine_extra_profiler.logger"] = $app->share(function () use ($app) { |
|
27 | + $app["debesha.doctrine_extra_profiler.logger"] = $app->share(function() use ($app) { |
|
28 | 28 | return new HydrationLogger($app->offsetGet("orm.em")); |
29 | 29 | }); |
30 | - $app["debesha.doctrine_extra_profiler.data_collector"] = $app->share(function () use ($app) { |
|
30 | + $app["debesha.doctrine_extra_profiler.data_collector"] = $app->share(function() use ($app) { |
|
31 | 31 | return new HydrationDataCollector( |
32 | 32 | $app->offsetGet("debesha.doctrine_extra_profiler.logger") |
33 | 33 | ); |
@@ -63,10 +63,10 @@ discard block |
||
63 | 63 | $templates = $app["data_collector.templates"]; |
64 | 64 | $templates[] = array("hydrations", "@DebeshaDoctrineProfileExtraBundle/Collector/hydrations.html.twig"); |
65 | 65 | $options = array('is_safe' => array('html')); |
66 | - $callable = function ($controller, $attributes = array(), $query = array()) { |
|
66 | + $callable = function($controller, $attributes = array(), $query = array()) { |
|
67 | 67 | return new ControllerReference($controller, $attributes, $query); |
68 | 68 | }; |
69 | - $collectors["hydrations"] = $app->share(function ($app) { |
|
69 | + $collectors["hydrations"] = $app->share(function($app) { |
|
70 | 70 | return $app["debesha.doctrine_extra_profiler.data_collector"]; |
71 | 71 | }); |
72 | 72 | |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | $app["data_collector.templates"] = $templates; |
75 | 75 | |
76 | 76 | $app["twig"]->addFunction(new \Twig_SimpleFunction("controller", $callable, $options)); |
77 | - $app['twig.loader.filesystem']->addPath(dirname(__FILE__) . DIRECTORY_SEPARATOR . "Views", "DebeshaDoctrineProfileExtraBundle"); |
|
77 | + $app['twig.loader.filesystem']->addPath(dirname(__FILE__).DIRECTORY_SEPARATOR."Views", "DebeshaDoctrineProfileExtraBundle"); |
|
78 | 78 | } |
79 | 79 | |
80 | 80 | } |
81 | 81 | \ No newline at end of file |