[event] refactor admin for event bundle

This commit is contained in:
nobohan
2022-07-06 13:36:20 +02:00
parent 389f014d36
commit 36e35f2e8f
19 changed files with 118 additions and 89 deletions

View File

@@ -12,6 +12,7 @@ declare(strict_types=1);
namespace Chill\EventBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
/**
* Class AdminController
@@ -20,18 +21,12 @@ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
class AdminController extends AbstractController
{
/**
* @return \Symfony\Component\HttpFoundation\Response
* Event admin.
*
* @Route("/{_locale}/admin/event", name="chill_event_admin_index")
*/
public function indexAction()
public function indexAdminAction()
{
return $this->render('ChillEventBundle:Admin:layout.html.twig');
}
/**
* @return \Symfony\Component\HttpFoundation\RedirectResponse
*/
public function redirectToAdminIndexAction()
{
return $this->redirectToRoute('chill_main_admin_central');
return $this->render('ChillEventBundle:Admin:index.html.twig');
}
}