26 lines
854 B
PHP
26 lines
854 B
PHP
<?php
|
|
|
|
namespace App\Controller\Administrative\System\StaffingRule;
|
|
|
|
use App\Repository\StaffingRuleRepository;
|
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
|
use Symfony\Component\HttpFoundation\Response;
|
|
use Symfony\Component\Routing\Attribute\Route;
|
|
use Symfony\Component\Security\Http\Attribute\IsGranted;
|
|
|
|
class IndexController extends AbstractController
|
|
{
|
|
public function __construct(private readonly StaffingRuleRepository $staffingRuleRepository)
|
|
{
|
|
}
|
|
|
|
#[Route('/administrative/system/staffing-rule', name: 'app_administrative_system_staffing_rule_index')]
|
|
#[IsGranted('ROLE_ADMINISTRATIVE')]
|
|
public function index(): Response
|
|
{
|
|
return $this->render('administrative/system/staffing_rule/index.html.twig', [
|
|
'rules' => $this->staffingRuleRepository->getList(),
|
|
]);
|
|
}
|
|
}
|