From c06474d0b2190a42bec3cab9061ef5f5c8a86706 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edi=20Modri=C4=87?= Date: Fri, 11 Oct 2019 17:45:35 +0200 Subject: [PATCH] EZP-30985: Replaced deprecated Twig classes (#25) Replaced deprecated namespace-less Twig classes with their equivalents in the \Twig namespace. --- bundle/DataCollector/TwigDataCollector.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bundle/DataCollector/TwigDataCollector.php b/bundle/DataCollector/TwigDataCollector.php index c74ba22..6b3dc27 100644 --- a/bundle/DataCollector/TwigDataCollector.php +++ b/bundle/DataCollector/TwigDataCollector.php @@ -14,6 +14,8 @@ use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\DataCollector\LateDataCollectorInterface; +use Twig\Environment; +use Twig\Profiler\Profile; class TwigDataCollector extends BaseCollector implements LateDataCollectorInterface { @@ -22,7 +24,7 @@ class TwigDataCollector extends BaseCollector implements LateDataCollectorInterf */ private $templatePathRegistry; - public function __construct(\Twig_Profiler_Profile $profile, \Twig_Environment $environment, TemplatePathRegistryInterface $templatePathRegistry) + public function __construct(Profile $profile, Environment $environment, TemplatePathRegistryInterface $templatePathRegistry) { parent::__construct($profile, $environment); $this->templatePathRegistry = $templatePathRegistry;