Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Change EngineTemplating to Twig for fix Symfony 4.3 deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
Daamian committed Jul 11, 2019
1 parent e74c987 commit 57fddff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Resources/config/breadcrumbs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<!-- Templating helper -->
<service id="white_october_breadcrumbs.helper" class="WhiteOctober\BreadcrumbsBundle\Templating\Helper\BreadcrumbsHelper" public="true">
<argument type="service" id="templating" />
<argument type="service" id="twig" />
<argument type="service" id="white_october_breadcrumbs" />
<argument>%white_october_breadcrumbs.options%</argument>
<tag name="templating.helper" alias="breadcrumbs" />
Expand Down
8 changes: 4 additions & 4 deletions Templating/Helper/BreadcrumbsHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
Expand Down

0 comments on commit 57fddff

Please sign in to comment.