From 57fddff226c13784e25ad8d37e38830d4ba47014 Mon Sep 17 00:00:00 2001 From: Damian Kusek Date: Thu, 11 Jul 2019 08:56:32 +0200 Subject: [PATCH] Change EngineTemplating to Twig for fix Symfony 4.3 deprecations --- Resources/config/breadcrumbs.xml | 2 +- Templating/Helper/BreadcrumbsHelper.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Resources/config/breadcrumbs.xml b/Resources/config/breadcrumbs.xml index 3cdbdf9..43bcb59 100644 --- a/Resources/config/breadcrumbs.xml +++ b/Resources/config/breadcrumbs.xml @@ -17,7 +17,7 @@ - + %white_october_breadcrumbs.options% diff --git a/Templating/Helper/BreadcrumbsHelper.php b/Templating/Helper/BreadcrumbsHelper.php index da238fc..463b193 100644 --- a/Templating/Helper/BreadcrumbsHelper.php +++ b/Templating/Helper/BreadcrumbsHelper.php @@ -3,13 +3,13 @@ namespace WhiteOctober\BreadcrumbsBundle\Templating\Helper; use Symfony\Component\Templating\Helper\Helper; -use Symfony\Component\Templating\EngineInterface; +use Twig\Environment; use WhiteOctober\BreadcrumbsBundle\Model\Breadcrumbs; class BreadcrumbsHelper extends Helper { /** - * @var EngineInterface + * @var Environment */ protected $templating; @@ -24,11 +24,11 @@ class BreadcrumbsHelper extends Helper protected $options = array(); /** - * @param \Symfony\Component\Templating\EngineInterface $templating + * @param \Twig\Environment $templating * @param \WhiteOctober\BreadcrumbsBundle\Model\Breadcrumbs $breadcrumbs * @param array $options The default options load from config file */ - public function __construct(EngineInterface $templating, Breadcrumbs $breadcrumbs, array $options) + public function __construct(Environment $templating, Breadcrumbs $breadcrumbs, array $options) { $this->templating = $templating; $this->breadcrumbs = $breadcrumbs;