@@ -369,7 +369,7 @@ public function load(array $configs, ContainerBuilder $container)
369
369
$ this ->registerSsiConfiguration ($ config ['ssi ' ], $ container , $ loader );
370
370
$ this ->registerFragmentsConfiguration ($ config ['fragments ' ], $ container , $ loader );
371
371
$ this ->registerTranslatorConfiguration ($ config ['translator ' ], $ container , $ loader , $ config ['default_locale ' ]);
372
- $ this ->registerProfilerConfiguration ($ config ['profiler ' ], $ container , $ loader );
372
+ $ this ->registerProfilerConfiguration ($ config ['profiler ' ], $ container , $ loader, $ phpLoader );
373
373
$ this ->registerWorkflowConfiguration ($ config ['workflows ' ], $ container , $ loader );
374
374
$ this ->registerDebugConfiguration ($ config ['php_errors ' ], $ container , $ phpLoader );
375
375
$ this ->registerRouterConfiguration ($ config ['router ' ], $ container , $ loader , $ config ['translator ' ]['enabled_locales ' ] ?? []);
@@ -568,7 +568,7 @@ private function registerFragmentsConfiguration(array $config, ContainerBuilder
568
568
$ container ->setParameter ('fragment.path ' , $ config ['path ' ]);
569
569
}
570
570
571
- private function registerProfilerConfiguration (array $ config , ContainerBuilder $ container , XmlFileLoader $ loader )
571
+ private function registerProfilerConfiguration (array $ config , ContainerBuilder $ container , XmlFileLoader $ loader, PhpFileLoader $ phpLoader )
572
572
{
573
573
if (!$ this ->isConfigEnabled ($ container , $ config )) {
574
574
// this is needed for the WebProfiler to work even if the profiler is disabled
@@ -577,7 +577,7 @@ private function registerProfilerConfiguration(array $config, ContainerBuilder $
577
577
return ;
578
578
}
579
579
580
- $ loader ->load ('profiling.xml ' );
580
+ $ phpLoader ->load ('profiling.php ' );
581
581
$ loader ->load ('collectors.xml ' );
582
582
$ loader ->load ('cache_debug.xml ' );
583
583
0 commit comments