mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 06:14:59 +00:00
Configure routes using annotation
This commit is contained in:
@@ -24,6 +24,7 @@ class ScopeController extends AbstractController
|
||||
{
|
||||
/**
|
||||
* Creates a new Scope entity.
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/admin/scope/create", name="admin_scope_create", methods={"POST"})
|
||||
*/
|
||||
public function createAction(Request $request)
|
||||
{
|
||||
@@ -47,6 +48,7 @@ class ScopeController extends AbstractController
|
||||
|
||||
/**
|
||||
* Displays a form to edit an existing Scope entity.
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/admin/scope/{id}/edit", name="admin_scope_edit")
|
||||
*/
|
||||
public function editAction(mixed $id)
|
||||
{
|
||||
@@ -68,6 +70,7 @@ class ScopeController extends AbstractController
|
||||
|
||||
/**
|
||||
* Lists all Scope entities.
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/admin/scope/", name="admin_scope")
|
||||
*/
|
||||
public function indexAction()
|
||||
{
|
||||
@@ -82,6 +85,7 @@ class ScopeController extends AbstractController
|
||||
|
||||
/**
|
||||
* Displays a form to create a new Scope entity.
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/admin/scope/new", name="admin_scope_new")
|
||||
*/
|
||||
public function newAction()
|
||||
{
|
||||
@@ -114,6 +118,7 @@ class ScopeController extends AbstractController
|
||||
|
||||
/**
|
||||
* Edits an existing Scope entity.
|
||||
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/admin/scope/{id}/update", name="admin_scope_update", methods={"POST", "PUT"})
|
||||
*/
|
||||
public function updateAction(Request $request, mixed $id)
|
||||
{
|
||||
|
Reference in New Issue
Block a user