AdminNiveauxController
extends AbstractController
in package
Description of AdminNiveauxController
Tags
Table of Contents
- ADMINNIVEAUX = "admin/admin.niveaux.html.twig"
- ADMINNIVEAUXROUTE = "admin.niveaux"
- $container : ContainerInterface
- $om : EntityManagerInterface
- $repository : NiveauRepository
- __construct() : mixed
- ajout() : Response
- getSubscribedServices() : array<string|int, string>
- Returns an array of service types required by such instances, optionally keyed by the service names used internally.
- index() : Response
- suppr() : Response
- getParameter() : array<string|int, mixed>|bool|float|int|string|null
- Gets a container parameter by its name.
Constants
ADMINNIVEAUX
private
mixed
ADMINNIVEAUX
= "admin/admin.niveaux.html.twig"
ADMINNIVEAUXROUTE
private
mixed
ADMINNIVEAUXROUTE
= "admin.niveaux"
Properties
$container
protected
ContainerInterface
$container
$om
private
EntityManagerInterface
$om
$repository
private
NiveauRepository
$repository
Methods
__construct()
public
__construct(NiveauRepository $repository, EntityManagerInterface $om) : mixed
Parameters
- $repository : NiveauRepository
- $om : EntityManagerInterface
Return values
mixed —ajout()
public
ajout(Request $request) : Response
Parameters
- $request : Request
Tags
Return values
Response —getSubscribedServices()
Returns an array of service types required by such instances, optionally keyed by the service names used internally.
public
static getSubscribedServices() : array<string|int, string>
For mandatory dependencies:
- ['logger' => 'Psr\Log\LoggerInterface'] means the objects use the "logger" name internally to fetch a service which must implement Psr\Log\LoggerInterface.
- ['loggers' => 'Psr\Log\LoggerInterface[]'] means the objects use the "loggers" name internally to fetch an iterable of Psr\Log\LoggerInterface instances.
- ['Psr\Log\LoggerInterface'] is a shortcut for
- ['Psr\Log\LoggerInterface' => 'Psr\Log\LoggerInterface']
otherwise:
- ['logger' => '?Psr\Log\LoggerInterface'] denotes an optional dependency
- ['loggers' => '?Psr\Log\LoggerInterface[]'] denotes an optional iterable dependency
- ['?Psr\Log\LoggerInterface'] is a shortcut for
- ['Psr\Log\LoggerInterface' => '?Psr\Log\LoggerInterface']
Return values
array<string|int, string> —The required service types, optionally keyed by service names
index()
public
index() : Response
Tags
Return values
Response —suppr()
public
suppr(Niveau $niveau, Request $request) : Response
Parameters
- $niveau : Niveau
- $request : Request
Tags
Return values
Response —getParameter()
Gets a container parameter by its name.
protected
getParameter(string $name) : array<string|int, mixed>|bool|float|int|string|null
Parameters
- $name : string