From 6aafb687d9125f22cb770ec927b4344fab2eca38 Mon Sep 17 00:00:00 2001 From: erikn69 Date: Wed, 21 Feb 2024 16:52:39 -0500 Subject: [PATCH] Click on Twig paths to open editor --- Plugin.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Plugin.php b/Plugin.php index 97c01bd..8e308a8 100644 --- a/Plugin.php +++ b/Plugin.php @@ -198,7 +198,8 @@ protected function registerCmsTwigExtensions() }); if (class_exists(\DebugBar\Bridge\NamespacedTwigProfileCollector::class)) { - $debugBar->addCollector(new \DebugBar\Bridge\NamespacedTwigProfileCollector($profile)); + $twig = $this->app->make('twig.environment.cms'); + $debugBar->addCollector(new \DebugBar\Bridge\NamespacedTwigProfileCollector($profile, $twig)); } else { $debugBar->addCollector(new \DebugBar\Bridge\TwigProfileCollector($profile)); }