|
|
|
@ -11,12 +11,17 @@ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
|
|
|
|
use Symfony\Component\HttpFoundation\Request;
|
|
|
|
|
use Symfony\Component\HttpFoundation\Response;
|
|
|
|
|
use Symfony\Component\Routing\Attribute\Route;
|
|
|
|
|
use Symfony\Component\Security\Http\Attribute\IsGranted;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Controller for the configuration pages of material types
|
|
|
|
|
*/
|
|
|
|
|
#[Route('/Config/MaterialType')]
|
|
|
|
|
#[IsGranted('IS_AUTHENTICATED')]
|
|
|
|
|
class MaterialTypeController extends AbstractController {
|
|
|
|
|
/**
|
|
|
|
|
* @var EntityManagerInterface The entity manager
|
|
|
|
|
*/
|
|
|
|
|
private readonly EntityManagerInterface $entityManager;
|
|
|
|
|
/**
|
|
|
|
|
* @var MaterialTypeRepository The material type repository
|
|
|
|
|