Skip to content

Commit 0bd0b13

Browse files
committed
Refactor: Update route names for plugins index and add actions in PluginsController
1 parent f92de81 commit 0bd0b13

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/CoreBundle/Controller/Admin/PluginsController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
class PluginsController extends BaseController
1717
{
1818
#[IsGranted('ROLE_ADMIN')]
19-
#[Route('/', name: 'chamilo_core_plugins', methods: ['GET', 'POST'])]
19+
#[Route('/', name: 'chamilo_core_plugins_index', methods: ['GET', 'POST'])]
2020
public function index(): Response
2121
{
2222
$appPlugin = new AppPlugin();
@@ -31,7 +31,7 @@ public function index(): Response
3131
}
3232

3333
#[IsGranted('ROLE_ADMIN')]
34-
#[Route('/add', name: 'chamilo_core_plugins', methods: ['GET', 'POST'])]
34+
#[Route('/add', name: 'chamilo_core_plugins_add', methods: ['GET', 'POST'])]
3535
public function pluginsAdd(): Response
3636
{
3737
$appPlugin = new AppPlugin();

src/CoreBundle/Resources/views/Admin/Settings/plugins.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% extends "@ChamiloCore/Layout/layout_one_col.html.twig" %}
22

33
{% block content %}
4-
<a href="{{ url('chamilo_core_admin_plugins_pluginsadd') }}">
4+
<a href="{{ url('chamilo_core_plugins_add') }}">
55
Add
66
</a>
77

0 commit comments

Comments
 (0)