mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-03 21:34:59 +00:00
rename syntax for ChillMain twig template calls
This commit is contained in:
@@ -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);
|
||||
}
|
@@ -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 = '';
|
||||
|
Reference in New Issue
Block a user