mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-22 07:33:50 +00:00
Configure routes using annotation
This commit is contained in:
@@ -20,6 +20,7 @@ class AdminController extends AbstractController
|
||||
{
|
||||
/**
|
||||
* @return \Symfony\Component\HttpFoundation\Response
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/admin/document", name="chill_docstore_admin", options={null})
|
||||
*/
|
||||
public function indexAction()
|
||||
{
|
||||
@@ -28,6 +29,7 @@ class AdminController extends AbstractController
|
||||
|
||||
/**
|
||||
* @return \Symfony\Component\HttpFoundation\RedirectResponse
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/admin/document_redirect_to_main", name="chill_docstore_admin_redirect_to_admin_index", options={null})
|
||||
*/
|
||||
public function redirectToAdminIndexAction()
|
||||
{
|
||||
|
@@ -76,7 +76,7 @@ class DocumentCategoryController extends AbstractController
|
||||
|
||||
/**
|
||||
* @Route("/", name="document_category_index", methods="GET")
|
||||
*/
|
||||
* @Route("/", name="chill_docstore_category_admin", methods="GET") */
|
||||
public function index(): Response
|
||||
{
|
||||
$em = $this->getDoctrine()->getManager();
|
||||
|
@@ -1,27 +1,3 @@
|
||||
app:
|
||||
resource: "@ChillDocStoreBundle/Controller/"
|
||||
type: annotation
|
||||
|
||||
## ADMIN SECTION
|
||||
chill_docstore_admin:
|
||||
path: /{_locale}/admin/document
|
||||
controller: Chill\DocStoreBundle\Controller\AdminController::indexAction
|
||||
options:
|
||||
menus:
|
||||
admin_section:
|
||||
order: 2200
|
||||
label: "Documents configuration menu"
|
||||
icons: ['calendar']
|
||||
|
||||
chill_docstore_admin_redirect_to_admin_index:
|
||||
path: /{_locale}/admin/document_redirect_to_main
|
||||
controller: Chill\DocStoreBundle\Controller\AdminController::redirectToAdminIndexAction
|
||||
options:
|
||||
menus:
|
||||
admin_docstore:
|
||||
order: 0
|
||||
label: Main admin menu
|
||||
|
||||
chill_docstore_category_admin:
|
||||
path: /{_locale}/admin/document/category
|
||||
controller: Chill\DocStoreBundle\Controller\DocumentCategoryController::indexAction
|
Reference in New Issue
Block a user