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

@@ -12,6 +12,8 @@ declare(strict_types=1);
namespace Chill\CustomFieldsBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
/**
* Class AdminController
@@ -19,7 +21,10 @@ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
*/
class AdminController extends AbstractController
{
public function indexAction()
/**
* @Route("/{_locale}/admin/customfield/", name="customfield_section")
*/
public function indexAction(): Response
{
return $this->render('ChillCustomFieldsBundle:Admin:layout.html.twig');
}