@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | { |
67 | 67 | public function register(Application $app) |
68 | 68 | { |
69 | - $app['var_dumper.cloner'] = $app->share(function ($app) { |
|
69 | + $app['var_dumper.cloner'] = $app->share(function($app) { |
|
70 | 70 | $cloner = new VarCloner(); |
71 | 71 | |
72 | 72 | if (isset($app['debug.max_items'])) { |
@@ -80,23 +80,23 @@ discard block |
||
80 | 80 | return $cloner; |
81 | 81 | }); |
82 | 82 | |
83 | - $app['data_collector.templates'] = $app->share($app->extend('data_collector.templates', function ($templates) { |
|
83 | + $app['data_collector.templates'] = $app->share($app->extend('data_collector.templates', function($templates) { |
|
84 | 84 | return array_merge($templates, array(array('dump', '@Debug/Profiler/dump.html.twig'))); |
85 | 85 | })); |
86 | 86 | |
87 | - $app['data_collector.dump'] = $app->share(function ($app) { |
|
87 | + $app['data_collector.dump'] = $app->share(function($app) { |
|
88 | 88 | return new DumpDataCollector($app['stopwatch'], $app['code.file_link_format']); |
89 | 89 | }); |
90 | 90 | |
91 | - $app['data_collectors'] = $app->share($app->extend('data_collectors', function ($collectors, $app) { |
|
92 | - $collectors['dump'] = $app->share(function ($app) { |
|
91 | + $app['data_collectors'] = $app->share($app->extend('data_collectors', function($collectors, $app) { |
|
92 | + $collectors['dump'] = $app->share(function($app) { |
|
93 | 93 | return $app['data_collector.dump']; |
94 | 94 | }); |
95 | 95 | |
96 | 96 | return $collectors; |
97 | 97 | })); |
98 | 98 | |
99 | - $app['twig'] = $app->share($app->extend('twig', function ($twig, $app) { |
|
99 | + $app['twig'] = $app->share($app->extend('twig', function($twig, $app) { |
|
100 | 100 | if (class_exists('\Symfony\Bridge\Twig\Extension\DumpExtension')) { |
101 | 101 | $twig->addExtension(new DumpExtension($app['var_dumper.cloner'])); |
102 | 102 | } |
@@ -104,13 +104,13 @@ discard block |
||
104 | 104 | return $twig; |
105 | 105 | })); |
106 | 106 | |
107 | - $app['twig.loader.filesystem'] = $app->share($app->extend('twig.loader.filesystem', function ($loader, $app) { |
|
107 | + $app['twig.loader.filesystem'] = $app->share($app->extend('twig.loader.filesystem', function($loader, $app) { |
|
108 | 108 | $loader->addPath($app['debug.templates_path'], 'Debug'); |
109 | 109 | |
110 | 110 | return $loader; |
111 | 111 | })); |
112 | 112 | |
113 | - $app['debug.templates_path'] = function () { |
|
113 | + $app['debug.templates_path'] = function() { |
|
114 | 114 | $r = new \ReflectionClass('Symfony\Bundle\DebugBundle\DependencyInjection\Configuration'); |
115 | 115 | |
116 | 116 | return dirname(dirname($r->getFileName())).'/Resources/views'; |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | // This code is here to lazy load the dump stack. This default |
123 | 123 | // configuration for CLI mode is overridden in HTTP mode on |
124 | 124 | // 'kernel.request' event |
125 | - VarDumper::setHandler(function ($var) use ($app) { |
|
125 | + VarDumper::setHandler(function($var) use ($app) { |
|
126 | 126 | $dumper = new CliDumper(); |
127 | 127 | $dumper->dump($app['var_dumper.cloner']->cloneVar($var)); |
128 | 128 | }); |