<?php
namespace AdminBundle\Admin\Ticket;
use AdminBundle\Admin\BaseAdmin;
use Sonata\AdminBundle\Route\RouteCollectionInterface;
class TicketDashboardAdmin extends BaseAdmin
{
protected $baseRouteName = 'ticket-dashboard';
protected $baseRoutePattern = 'ticket-dashboard-action';
protected function configureRoutes(RouteCollectionInterface $collection): void
{
$collection->remove('create');
}
protected function configure(): void
{
parent::configure(); // TODO: Change the autogenerated stub
$this->setTemplate('list', '@Admin/CRUD/Ticket/ticket-dashboard.html.twig');
}
}