rename syntax for ChillMain twig template calls

This commit is contained in:
2020-07-30 14:25:28 +02:00
parent 6a2b94b4c2
commit 09a2cea83b
6 changed files with 8 additions and 6 deletions

View File

@@ -9,6 +9,7 @@
namespace Chill\PersonBundle\Widget;
use Chill\MainBundle\Templating\Widget\WidgetInterface;
use Twig\Environment;
/**
@@ -19,7 +20,7 @@ use Chill\MainBundle\Templating\Widget\WidgetInterface;
class AddAPersonWidget implements WidgetInterface
{
public function render(
\Twig_Environment $env,
Environment $env,
$place,
array $context,
array $config) {

View File

@@ -30,6 +30,7 @@ use Chill\PersonBundle\Security\Authorization\PersonVoter;
use Symfony\Component\Security\Core\Role\Role;
use Doctrine\ORM\EntityManager;
use Chill\CustomFieldsBundle\Entity\CustomField;
use Twig\Environment;
/**
* add a widget with person list.
@@ -93,7 +94,7 @@ class PersonListWidget implements WidgetInterface
* @param array $config
* @return string
*/
public function render(\Twig_Environment $env, $place, array $context, array $config)
public function render(Environment $env, $place, array $context, array $config)
{
$numberOfItems = $config['number_of_items'] ?? 20;