rename syntax for ChillMain twig template calls

This commit is contained in:
2020-07-30 14:25:28 +02:00
parent ced9d17d03
commit 7d9de642ff
41 changed files with 49 additions and 46 deletions

View File

@@ -2,9 +2,9 @@
namespace Chill\MainBundle\Templating\Widget;
use \Twig_Environment;
use Twig\Environment;
interface WidgetInterface
{
public function render(Twig_Environment $env, $place, array $context, array $config);
public function render(Environment $env, $place, array $context, array $config);
}

View File

@@ -22,6 +22,7 @@ namespace Chill\MainBundle\Templating\Widget;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Chill\MainBundle\Templating\Widget\WidgetInterface;
use Chill\MainBundle\Templating\Events\DelegatedBlockRenderingEvent;
use Twig\Environment;
use Twig\Extension\AbstractExtension;
use Twig\TwigFunction;
@@ -105,7 +106,7 @@ class WidgetRenderingTwig extends AbstractExtension
);
}
public function renderingWidget(\Twig_Environment $env, $block, array $context = array())
public function renderingWidget(Environment $env, $block, array $context = array())
{
// get the content of widgets
$content = '';