From 2cfc57315e597f08c3b4ad83fb7bde44c19ecb7a Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Wed, 21 Mar 2018 20:24:29 +0100 Subject: [PATCH] [WebProfilerBundle] use the router to resolve file links --- .../Resources/config/profiler.xml | 15 ++++++++++++++- src/Symfony/Component/Routing/Router.php | 8 ++++++-- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/config/profiler.xml b/src/Symfony/Bundle/WebProfilerBundle/Resources/config/profiler.xml index 85634882bd416..f56b1f2f50d1a 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/config/profiler.xml +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/config/profiler.xml @@ -56,7 +56,20 @@ %debug.file_link_format% %kernel.project_dir% - /_profiler/open?file=%%f&line=%%l#line%%l + + + + + + + + _profiler_open_file + + + ?file=%%f&line=%%l#line%%l + + + diff --git a/src/Symfony/Component/Routing/Router.php b/src/Symfony/Component/Routing/Router.php index 0de921853f875..ed56332ecd5f5 100644 --- a/src/Symfony/Component/Routing/Router.php +++ b/src/Symfony/Component/Routing/Router.php @@ -302,7 +302,9 @@ function (ConfigCacheInterface $cache) { } ); - require_once $cache->getPath(); + if (!class_exists($this->options['matcher_cache_class'], false)) { + require_once $cache->getPath(); + } return $this->matcher = new $this->options['matcher_cache_class']($this->context); } @@ -334,7 +336,9 @@ function (ConfigCacheInterface $cache) { } ); - require_once $cache->getPath(); + if (!class_exists($this->options['generator_cache_class'], false)) { + require_once $cache->getPath(); + } $this->generator = new $this->options['generator_cache_class']($this->context, $this->logger); } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy