src/AdminBundle/Admin/Document/BranchesAdmin.php line 9

Open in your IDE?
  1. <?php
  2. namespace AdminBundle\Admin\Document;
  3. use AdminBundle\Admin\BaseAdmin;
  4. use Sonata\AdminBundle\Route\RouteCollectionInterface;
  5. class BranchesAdmin extends BaseAdmin
  6. {
  7.     protected $baseRouteName 'document_branch';
  8.     protected $baseRoutePattern 'document_branch_action';
  9.     /**
  10.      * @param RouteCollectionInterface $collection
  11.      */
  12.     protected function configureRoutes(RouteCollectionInterface $collection): void
  13.     {
  14.         $collection->add('branch_offers_list'$this->getRouterIdParameter() . '/offers/list');
  15.         $collection->add('branch_offers_create'$this->getRouterIdParameter() . '/offers/create');
  16.         $collection->add('document_qr_test''branch/qr_test');
  17.         $collection->add('session_token_invalidate''document/token_invalidate');
  18.         $collection->add('document_get_qr_test''document/{branchId}/qr_test/' $this->getRouterIdParameter());
  19.         $collection->add(
  20.             'document_get_json_qr_test',
  21.             'document/{branchId}/qr_test/json/' $this->getRouterIdParameter()
  22.         );
  23.         $collection->add('branch_list''list_branches');
  24.         $collection->add(
  25.             'branch_offers_delete',
  26.             'branch/{branchId}/offers/delete/' $this->getRouterIdParameter()
  27.         );
  28.         $collection->add('document_test_upload''branch/document/test/callback');
  29.         $collection->add('document_sync''branch/document/offers/sync');
  30.     }
  31.     protected function configure(): void
  32.     {
  33.         parent::configure(); // TODO: Change the autogenerated stub
  34.         $this->setTemplate('list''@Admin/document/list-branches.html.twig');
  35.     }
  36. }