Skip to content

Commit d0579ab

Browse files
author
Vincent Chalnot
committed
Fixing compatibility with sidus/admin-bundle v3
1 parent 30f5137 commit d0579ab

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

AdminBundle/Action/EAV/EditAction.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use CleverAge\EAVManager\AdminBundle\Templating\EAVTemplatingHelper;
1414
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;
1515
use Sidus\AdminBundle\Action\ActionInjectableInterface;
16+
use Sidus\AdminBundle\Action\RedirectableInterface;
1617
use Sidus\AdminBundle\Admin\Action;
1718
use Sidus\AdminBundle\Doctrine\DoctrineHelper;
1819
use CleverAge\EAVManager\AdminBundle\Form\EAVFormHelper;
@@ -26,7 +27,7 @@
2627
/**
2728
* @Security("is_granted('edit', data)")
2829
*/
29-
class EditAction implements ActionInjectableInterface
30+
class EditAction implements ActionInjectableInterface, RedirectableInterface
3031
{
3132
/** @var EAVFormHelper */
3233
protected $formHelper;

AdminBundle/Action/EAV/EditSingletonAction.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use CleverAge\EAVManager\EAVModelBundle\Entity\DataRepository;
1414
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;
1515
use Sidus\AdminBundle\Action\ActionInjectableInterface;
16+
use Sidus\AdminBundle\Action\RedirectableInterface;
1617
use Sidus\AdminBundle\Admin\Action;
1718
use Sidus\BaseBundle\Doctrine\RepositoryFinder;
1819
use Sidus\EAVModelBundle\Model\FamilyInterface;
@@ -22,7 +23,7 @@
2223
/**
2324
* @Security("is_granted('edit', family)")
2425
*/
25-
class EditSingletonAction implements ActionInjectableInterface
26+
class EditSingletonAction implements ActionInjectableInterface, RedirectableInterface
2627
{
2728
/** @var EditAction */
2829
protected $editAction;

AdminBundle/Action/EditAction.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
1515
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;
1616
use Sidus\AdminBundle\Action\ActionInjectableInterface;
17+
use Sidus\AdminBundle\Action\RedirectableInterface;
1718
use Sidus\AdminBundle\Admin\Action;
1819
use Sidus\AdminBundle\Doctrine\DoctrineHelper;
1920
use CleverAge\EAVManager\AdminBundle\Form\FormHelper;
@@ -24,7 +25,7 @@
2425
/**
2526
* @Security("is_granted('edit', data)")
2627
*/
27-
class EditAction implements ActionInjectableInterface
28+
class EditAction implements ActionInjectableInterface, RedirectableInterface
2829
{
2930
/** @var FormHelper */
3031
protected $formHelper;

AdminBundle/Action/User/EditAction.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
1717
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;
1818
use Sidus\AdminBundle\Action\ActionInjectableInterface;
19+
use Sidus\AdminBundle\Action\RedirectableInterface;
1920
use Sidus\AdminBundle\Admin\Action;
2021
use Sidus\AdminBundle\Routing\RoutingHelper;
2122
use Sidus\BaseBundle\Translator\TranslatableTrait;
@@ -28,7 +29,7 @@
2829
/**
2930
* @Security("is_granted('edit', data)")
3031
*/
31-
class EditAction implements ActionInjectableInterface
32+
class EditAction implements ActionInjectableInterface, RedirectableInterface
3233
{
3334
use TranslatableTrait;
3435

0 commit comments

Comments
 (0)