Configure routes using annotation

This commit is contained in:
2023-08-02 16:26:25 +02:00
parent 4b20db7a9c
commit 009a0326d9
55 changed files with 215 additions and 772 deletions

View File

@@ -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()
{

View File

@@ -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();