@@ -369,7 +369,7 @@ public function load(array $configs, ContainerBuilder $container)
369369 $ this ->registerSsiConfiguration ($ config ['ssi ' ], $ container , $ loader );
370370 $ this ->registerFragmentsConfiguration ($ config ['fragments ' ], $ container , $ loader );
371371 $ this ->registerTranslatorConfiguration ($ config ['translator ' ], $ container , $ loader , $ config ['default_locale ' ]);
372- $ this ->registerProfilerConfiguration ($ config ['profiler ' ], $ container , $ loader );
372+ $ this ->registerProfilerConfiguration ($ config ['profiler ' ], $ container , $ loader, $ phpLoader );
373373 $ this ->registerWorkflowConfiguration ($ config ['workflows ' ], $ container , $ loader );
374374 $ this ->registerDebugConfiguration ($ config ['php_errors ' ], $ container , $ phpLoader );
375375 $ this ->registerRouterConfiguration ($ config ['router ' ], $ container , $ loader , $ config ['translator ' ]['enabled_locales ' ] ?? []);
@@ -568,7 +568,7 @@ private function registerFragmentsConfiguration(array $config, ContainerBuilder
568568 $ container ->setParameter ('fragment.path ' , $ config ['path ' ]);
569569 }
570570
571- private function registerProfilerConfiguration (array $ config , ContainerBuilder $ container , XmlFileLoader $ loader )
571+ private function registerProfilerConfiguration (array $ config , ContainerBuilder $ container , XmlFileLoader $ loader, PhpFileLoader $ phpLoader )
572572 {
573573 if (!$ this ->isConfigEnabled ($ container , $ config )) {
574574 // this is needed for the WebProfiler to work even if the profiler is disabled
@@ -577,7 +577,7 @@ private function registerProfilerConfiguration(array $config, ContainerBuilder $
577577 return ;
578578 }
579579
580- $ loader ->load ('profiling.xml ' );
580+ $ phpLoader ->load ('profiling.php ' );
581581 $ loader ->load ('collectors.xml ' );
582582 $ loader ->load ('cache_debug.xml ' );
583583
0 commit comments