|
|
@@ -2,33 +2,19 @@ |
|
|
|
|
|
|
|
namespace Lc\SovBundle\Controller\Ticket; |
|
|
|
|
|
|
|
use App\Entity\Ticket\Ticket; |
|
|
|
use App\Entity\Ticket\TicketMessage; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Collection\FieldCollection; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Config\Action; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Config\Actions; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Config\Assets; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Config\Crud; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Config\Filters; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Config\KeyValueStore; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Event\AfterCrudActionEvent; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Event\AfterEntityPersistedEvent; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Event\BeforeCrudActionEvent; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Event\BeforeEntityPersistedEvent; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Exception\ForbiddenActionException; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Exception\InsufficientEntityPermissionException; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Factory\EntityFactory; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Field\AssociationField; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Field\ChoiceField; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Field\DateField; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Field\IntegerField; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Router\AdminUrlGenerator; |
|
|
|
use EasyCorp\Bundle\EasyAdminBundle\Security\Permission; |
|
|
|
use Lc\SovBundle\Factory\Ticket\TicketFactory; |
|
|
|
use Lc\SovBundle\Factory\Ticket\TicketFactoryInterface; |
|
|
|
use Lc\SovBundle\Factory\Ticket\TicketMessageFactory; |
|
|
|
use Lc\SovBundle\Field\StatusField; |
|
|
|
use Lc\SovBundle\Form\Ticket\TicketFormType; |
|
|
|
use Lc\SovBundle\Form\Ticket\TicketMessageFormType; |
|
|
|
use Lc\SovBundle\Form\Ticket\TicketStatusType; |
|
|
@@ -36,9 +22,6 @@ use Lc\SovBundle\Model\Ticket\TicketInterface; |
|
|
|
use Lc\SovBundle\Controller\AbstractAdminController; |
|
|
|
use Lc\SovBundle\Model\Ticket\TicketModel; |
|
|
|
use Symfony\Component\HttpFoundation\JsonResponse; |
|
|
|
use Symfony\Component\HttpFoundation\Request; |
|
|
|
use Symfony\Component\HttpFoundation\Response; |
|
|
|
use Symfony\Component\Translation\TranslatableMessage; |
|
|
|
|
|
|
|
class TicketAdminController extends AbstractAdminController |
|
|
|
{ |
|
|
@@ -48,7 +31,7 @@ class TicketAdminController extends AbstractAdminController |
|
|
|
protected $em; |
|
|
|
|
|
|
|
public function __construct( |
|
|
|
TicketFactory $ticketFactory, |
|
|
|
TicketFactoryInterface $ticketFactory, |
|
|
|
TicketMessageFactory $ticketMessageFactory, |
|
|
|
AdminUrlGenerator $adminUrlGenerator |
|
|
|
) { |