Skip to content

Commit

Permalink
EZP-30985: Replaced deprecated Twig classes (#25)
Browse files Browse the repository at this point in the history
Replaced deprecated namespace-less Twig classes with their equivalents in the \Twig namespace.
  • Loading branch information
emodric authored and alongosz committed Oct 11, 2019
1 parent ab15dfb commit c06474d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bundle/DataCollector/TwigDataCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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;
Expand Down

0 comments on commit c06474d

Please sign in to comment.