Loading module/Application/config/merged/affectation.config.php +108 Changes for module/Application/config/merged/affectation.config.php: 108 added lines, 0 removed lines. Original line number Diff line number Diff line <?php namespace Application; use Application\Controller\Affectation\AffectationController; use Application\Controller\Affectation\AffectationControllerFactory; use Application\Provider\Privilege\AffectationPrivileges; use UnicaenAuth\Guard\PrivilegeController; use Zend\Mvc\Router\Http\Literal; use Zend\Mvc\Router\Http\Segment; return [ 'bjyauthorize' => [ 'guards' => [ PrivilegeController::class => [ [ 'controller' => AffectationController::class, 'action' => [ 'index', ], 'privileges' => [ AffectationPrivileges::AFFICHER, ], ], [ 'controller' => AffectationController::class, 'action' => [ 'creer', 'editer', 'effacer', ], 'privileges' => [ AffectationPrivileges::EDITER, ], ], ], ], ], 'router' => [ 'routes' => [ 'activite' => [ 'type' => Literal::class, 'options' => [ 'route' => '/affectation', 'defaults' => [ 'controller' => AffectationController::class, 'action' => 'index', ], ], 'may_terminate' => true, 'child_routes' => [ 'editer' => [ 'type' => Segment::class, 'options' => [ 'route' => '/editer/:id', 'defaults' => [ 'controller' => AffectationController::class, 'action' => 'editer', ], ], ], 'effacer' => [ 'type' => Segment::class, 'options' => [ 'route' => '/effacer/:id', 'defaults' => [ 'controller' => AffectationController::class, 'action' => 'effacer', ], ], ], 'creer' => [ 'type' => Literal::class, 'options' => [ 'route' => '/creer', 'defaults' => [ 'controller' => AffectationController::class, 'action' => 'creer', ], ], ] ], ], ], ], 'service_manager' => [ 'invokables' => [ ], 'factories' => [ ], ], 'controllers' => [ 'factories' => [ AffectationController::class => AffectationControllerFactory::class, ], ], 'form_elements' => [ 'factories' => [ ], ], 'hydrators' => [ 'invokable' => [ ] ] ]; No newline at end of file module/Application/src/Application/Controller/Affectation/AffectationController.php +14 Changes for module/Application/src/Application/Controller/Affectation/AffectationController.php: 14 added lines, 0 removed lines. Original line number Diff line number Diff line <?php namespace Application\Controller\Affectation; use Zend\Mvc\Controller\AbstractActionController; use Zend\View\Model\ViewModel; class AffectationController extends AbstractActionController { public function indexAction() { return new ViewModel(); } } No newline at end of file module/Application/src/Application/Controller/Affectation/AffectationControllerFactory.php +15 Changes for module/Application/src/Application/Controller/Affectation/AffectationControllerFactory.php: 15 added lines, 0 removed lines. Original line number Diff line number Diff line <?php namespace Application\Controller\Affectation; use Zend\Mvc\Controller\ControllerManager; class AffectationControllerFactory { public function __invoke(ControllerManager $controllerManager) { /** @var AffectationController $controller */ $controller = new AffectationController(); return $controller; } } No newline at end of file module/Application/src/Application/Entity/Db/Affectation.php +20 Changes for module/Application/src/Application/Entity/Db/Affectation.php: 20 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -8,6 +8,8 @@ class Affectation { private $id; /** @var string */ private $libelle; /** @var string */ private $description; /** * @return int Loading Loading @@ -35,6 +37,24 @@ class Affectation { return $this; } /** * @return string */ public function getDescription() { return $this->description; } /** * @param string $description * @return Affectation */ public function setDescription($description) { $this->description = $description; return $this; } public function __toString() { return $this->libelle; Loading module/Application/src/Application/Entity/Db/Mapping/Application.Entity.Db.Affectation.dcm.xml +1 Changes for module/Application/src/Application/Entity/Db/Mapping/Application.Entity.Db.Affectation.dcm.xml: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ </id> <field name="libelle" type="string" length="256" column="libelle" nullable="false"/> <field name="description" type="string" length="2048" column="description" nullable="true"/> </entity> </doctrine-mapping> Loading
module/Application/config/merged/affectation.config.php +108 Changes for module/Application/config/merged/affectation.config.php: 108 added lines, 0 removed lines. Original line number Diff line number Diff line <?php namespace Application; use Application\Controller\Affectation\AffectationController; use Application\Controller\Affectation\AffectationControllerFactory; use Application\Provider\Privilege\AffectationPrivileges; use UnicaenAuth\Guard\PrivilegeController; use Zend\Mvc\Router\Http\Literal; use Zend\Mvc\Router\Http\Segment; return [ 'bjyauthorize' => [ 'guards' => [ PrivilegeController::class => [ [ 'controller' => AffectationController::class, 'action' => [ 'index', ], 'privileges' => [ AffectationPrivileges::AFFICHER, ], ], [ 'controller' => AffectationController::class, 'action' => [ 'creer', 'editer', 'effacer', ], 'privileges' => [ AffectationPrivileges::EDITER, ], ], ], ], ], 'router' => [ 'routes' => [ 'activite' => [ 'type' => Literal::class, 'options' => [ 'route' => '/affectation', 'defaults' => [ 'controller' => AffectationController::class, 'action' => 'index', ], ], 'may_terminate' => true, 'child_routes' => [ 'editer' => [ 'type' => Segment::class, 'options' => [ 'route' => '/editer/:id', 'defaults' => [ 'controller' => AffectationController::class, 'action' => 'editer', ], ], ], 'effacer' => [ 'type' => Segment::class, 'options' => [ 'route' => '/effacer/:id', 'defaults' => [ 'controller' => AffectationController::class, 'action' => 'effacer', ], ], ], 'creer' => [ 'type' => Literal::class, 'options' => [ 'route' => '/creer', 'defaults' => [ 'controller' => AffectationController::class, 'action' => 'creer', ], ], ] ], ], ], ], 'service_manager' => [ 'invokables' => [ ], 'factories' => [ ], ], 'controllers' => [ 'factories' => [ AffectationController::class => AffectationControllerFactory::class, ], ], 'form_elements' => [ 'factories' => [ ], ], 'hydrators' => [ 'invokable' => [ ] ] ]; No newline at end of file
module/Application/src/Application/Controller/Affectation/AffectationController.php +14 Changes for module/Application/src/Application/Controller/Affectation/AffectationController.php: 14 added lines, 0 removed lines. Original line number Diff line number Diff line <?php namespace Application\Controller\Affectation; use Zend\Mvc\Controller\AbstractActionController; use Zend\View\Model\ViewModel; class AffectationController extends AbstractActionController { public function indexAction() { return new ViewModel(); } } No newline at end of file
module/Application/src/Application/Controller/Affectation/AffectationControllerFactory.php +15 Changes for module/Application/src/Application/Controller/Affectation/AffectationControllerFactory.php: 15 added lines, 0 removed lines. Original line number Diff line number Diff line <?php namespace Application\Controller\Affectation; use Zend\Mvc\Controller\ControllerManager; class AffectationControllerFactory { public function __invoke(ControllerManager $controllerManager) { /** @var AffectationController $controller */ $controller = new AffectationController(); return $controller; } } No newline at end of file
module/Application/src/Application/Entity/Db/Affectation.php +20 Changes for module/Application/src/Application/Entity/Db/Affectation.php: 20 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -8,6 +8,8 @@ class Affectation { private $id; /** @var string */ private $libelle; /** @var string */ private $description; /** * @return int Loading Loading @@ -35,6 +37,24 @@ class Affectation { return $this; } /** * @return string */ public function getDescription() { return $this->description; } /** * @param string $description * @return Affectation */ public function setDescription($description) { $this->description = $description; return $this; } public function __toString() { return $this->libelle; Loading
module/Application/src/Application/Entity/Db/Mapping/Application.Entity.Db.Affectation.dcm.xml +1 Changes for module/Application/src/Application/Entity/Db/Mapping/Application.Entity.Db.Affectation.dcm.xml: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ </id> <field name="libelle" type="string" length="256" column="libelle" nullable="false"/> <field name="description" type="string" length="2048" column="description" nullable="true"/> </entity> </doctrine-mapping>