Loading module/Formation/config/others/formation.config.php +218 Changes for module/Formation/config/others/formation.config.php: 218 added lines, 0 removed lines. Original line number Diff line number Diff line <?php namespace Formation; use Formation\Controller\FormationController; use Formation\Controller\FormationControllerFactory; use Formation\Form\Formation\FormationForm; use Formation\Form\Formation\FormationFormFactory; use Formation\Form\Formation\FormationHydrator; use Formation\Form\Formation\FormationHydratorFactory; use Formation\Provider\Privilege\FormationPrivileges; use Formation\Service\Formation\FormationService; use Formation\Service\Formation\FormationServiceFactory; use UnicaenAuth\Guard\PrivilegeController; use Zend\Router\Http\Literal; use Zend\Router\Http\Segment; return [ 'bjyauthorize' => [ 'guards' => [ PrivilegeController::class => [ [ 'controller' => FormationController::class, 'action' => [ 'index', ], 'privileges' => [ FormationPrivileges::FORMATION_INDEX, ], ], [ 'controller' => FormationController::class, 'action' => [ 'afficher', ], 'privileges' => [ FormationPrivileges::FORMATION_AFFICHER, ], ], [ 'controller' => FormationController::class, 'action' => [ 'ajouter', ], 'privileges' => [ FormationPrivileges::FORMATION_AJOUTER, ], ], [ 'controller' => FormationController::class, 'action' => [ 'modifier', ], 'privileges' => [ FormationPrivileges::FORMATION_MODIFIER, ], ], [ 'controller' => FormationController::class, 'action' => [ 'historiser', 'restaurer', ], 'privileges' => [ FormationPrivileges::FORMATION_HISTORISER, ], ], [ 'controller' => FormationController::class, 'action' => [ 'supprimer', ], 'privileges' => [ FormationPrivileges::FORMATION_SUPPRIMER, ], ], ], ], ], 'navigation' => [ 'default' => [ 'home' => [ 'pages' => [ 'formation' => [ 'pages' => [ 'formation' => [ 'label' => 'Formations', 'route' => 'formation/formation', 'resource' => PrivilegeController::getResourceId(FormationController::class, 'index') , 'order' => 200, 'pages' => [ 'afficher' => [ 'label' => "Affichage d'une formation", 'route' => 'formation/formation/afficher', 'resource' => PrivilegeController::getResourceId(FormationController::class, 'afficher') , 'order' => 100, 'visible' => false, ], ], ], ], ], ], ], ], ], 'router' => [ 'routes' => [ 'formation' => [ 'child_routes' => [ 'formation' => [ 'type' => Literal::class, 'may_terminate' => true, 'options' => [ 'route' => '/formation', 'defaults' => [ 'controller' => FormationController::class, 'action' => 'index', ], ], 'child_routes' => [ 'afficher' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/afficher/:formation', 'defaults' => [ 'controller' => FormationController::class, 'action' => 'afficher', ], ], ], 'ajouter' => [ 'type' => Literal::class, 'may_terminate' => true, 'options' => [ 'route' => '/ajouter', 'defaults' => [ 'controller' => FormationController::class, 'action' => 'ajouter', ], ], ], 'modifier' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/modifier/:formation', 'defaults' => [ 'controller' => FormationController::class, 'action' => 'modifier', ], ], ], 'historiser' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/historiser/:formation', 'defaults' => [ 'controller' => FormationController::class, 'action' => 'historiser', ], ], ], 'restaurer' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/restaurer/:formation', 'defaults' => [ 'controller' => FormationController::class, 'action' => 'restaurer', ], ], ], 'supprimer' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/supprimer/:formation', 'defaults' => [ 'controller' => FormationController::class, 'action' => 'supprimer', ], ], ], ], ], ], ], ], ], 'service_manager' => [ 'factories' => [ FormationService::class => FormationServiceFactory::class, ], ], 'controllers' => [ 'factories' => [ FormationController::class => FormationControllerFactory::class, ], ], 'form_elements' => [ 'factories' => [ FormationForm::class => FormationFormFactory::class, ], ], 'hydrators' => [ 'factories' => [ FormationHydrator::class => FormationHydratorFactory::class, ], ] ]; No newline at end of file module/Formation/config/others/inscription.config.php +1 −1 Changes for module/Formation/config/others/inscription.config.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -96,7 +96,7 @@ return [ 'label' => 'Inscriptions', 'route' => 'formation/inscription', 'resource' => PrivilegeController::getResourceId(InscriptionController::class, 'index') , 'order' => 400, 'order' => 500, ], ], ], Loading module/Formation/config/others/module.config.php +2 −2 Changes for module/Formation/config/others/module.config.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -2,13 +2,13 @@ namespace Formation; use Formation\Controller\FormationController; use Formation\Controller\ModuleController; use Formation\Controller\ModuleControllerFactory; use Formation\Form\Module\ModuleForm; use Formation\Form\Module\ModuleFormFactory; use Formation\Form\Module\ModuleHydrator; use Formation\Form\Module\ModuleHydratorFactory; use Formation\Provider\Privilege\IndexPrivileges; use Formation\Provider\Privilege\ModulePrivileges; use Formation\Service\Module\ModuleService; use Formation\Service\Module\ModuleServiceFactory; Loading Loading @@ -92,7 +92,7 @@ return [ 'order' => 100, 'pages' => [ 'afficher' => [ 'label' => "Affichage d'un module", 'label' => "Affichage d'une formation", 'route' => 'formation/module/afficher', 'resource' => PrivilegeController::getResourceId(ModuleController::class, 'afficher') , 'order' => 100, Loading module/Formation/config/others/seance.config.php +1 −1 Changes for module/Formation/config/others/seance.config.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -89,7 +89,7 @@ return [ // 'label' => 'Seances', // 'route' => 'formation/seance', // 'resource' => PrivilegeController::getResourceId(SeanceController::class, 'index') , // 'order' => 300, // 'order' => 400, // ], // ], // ], Loading module/Formation/config/others/session.config.php +1 −1 Changes for module/Formation/config/others/session.config.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -101,7 +101,7 @@ return [ 'label' => 'Sessions', 'route' => 'formation/session', 'resource' => PrivilegeController::getResourceId(SessionController::class, 'index') , 'order' => 200, 'order' => 300, ], ], ], Loading Loading
module/Formation/config/others/formation.config.php +218 Changes for module/Formation/config/others/formation.config.php: 218 added lines, 0 removed lines. Original line number Diff line number Diff line <?php namespace Formation; use Formation\Controller\FormationController; use Formation\Controller\FormationControllerFactory; use Formation\Form\Formation\FormationForm; use Formation\Form\Formation\FormationFormFactory; use Formation\Form\Formation\FormationHydrator; use Formation\Form\Formation\FormationHydratorFactory; use Formation\Provider\Privilege\FormationPrivileges; use Formation\Service\Formation\FormationService; use Formation\Service\Formation\FormationServiceFactory; use UnicaenAuth\Guard\PrivilegeController; use Zend\Router\Http\Literal; use Zend\Router\Http\Segment; return [ 'bjyauthorize' => [ 'guards' => [ PrivilegeController::class => [ [ 'controller' => FormationController::class, 'action' => [ 'index', ], 'privileges' => [ FormationPrivileges::FORMATION_INDEX, ], ], [ 'controller' => FormationController::class, 'action' => [ 'afficher', ], 'privileges' => [ FormationPrivileges::FORMATION_AFFICHER, ], ], [ 'controller' => FormationController::class, 'action' => [ 'ajouter', ], 'privileges' => [ FormationPrivileges::FORMATION_AJOUTER, ], ], [ 'controller' => FormationController::class, 'action' => [ 'modifier', ], 'privileges' => [ FormationPrivileges::FORMATION_MODIFIER, ], ], [ 'controller' => FormationController::class, 'action' => [ 'historiser', 'restaurer', ], 'privileges' => [ FormationPrivileges::FORMATION_HISTORISER, ], ], [ 'controller' => FormationController::class, 'action' => [ 'supprimer', ], 'privileges' => [ FormationPrivileges::FORMATION_SUPPRIMER, ], ], ], ], ], 'navigation' => [ 'default' => [ 'home' => [ 'pages' => [ 'formation' => [ 'pages' => [ 'formation' => [ 'label' => 'Formations', 'route' => 'formation/formation', 'resource' => PrivilegeController::getResourceId(FormationController::class, 'index') , 'order' => 200, 'pages' => [ 'afficher' => [ 'label' => "Affichage d'une formation", 'route' => 'formation/formation/afficher', 'resource' => PrivilegeController::getResourceId(FormationController::class, 'afficher') , 'order' => 100, 'visible' => false, ], ], ], ], ], ], ], ], ], 'router' => [ 'routes' => [ 'formation' => [ 'child_routes' => [ 'formation' => [ 'type' => Literal::class, 'may_terminate' => true, 'options' => [ 'route' => '/formation', 'defaults' => [ 'controller' => FormationController::class, 'action' => 'index', ], ], 'child_routes' => [ 'afficher' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/afficher/:formation', 'defaults' => [ 'controller' => FormationController::class, 'action' => 'afficher', ], ], ], 'ajouter' => [ 'type' => Literal::class, 'may_terminate' => true, 'options' => [ 'route' => '/ajouter', 'defaults' => [ 'controller' => FormationController::class, 'action' => 'ajouter', ], ], ], 'modifier' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/modifier/:formation', 'defaults' => [ 'controller' => FormationController::class, 'action' => 'modifier', ], ], ], 'historiser' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/historiser/:formation', 'defaults' => [ 'controller' => FormationController::class, 'action' => 'historiser', ], ], ], 'restaurer' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/restaurer/:formation', 'defaults' => [ 'controller' => FormationController::class, 'action' => 'restaurer', ], ], ], 'supprimer' => [ 'type' => Segment::class, 'may_terminate' => true, 'options' => [ 'route' => '/supprimer/:formation', 'defaults' => [ 'controller' => FormationController::class, 'action' => 'supprimer', ], ], ], ], ], ], ], ], ], 'service_manager' => [ 'factories' => [ FormationService::class => FormationServiceFactory::class, ], ], 'controllers' => [ 'factories' => [ FormationController::class => FormationControllerFactory::class, ], ], 'form_elements' => [ 'factories' => [ FormationForm::class => FormationFormFactory::class, ], ], 'hydrators' => [ 'factories' => [ FormationHydrator::class => FormationHydratorFactory::class, ], ] ]; No newline at end of file
module/Formation/config/others/inscription.config.php +1 −1 Changes for module/Formation/config/others/inscription.config.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -96,7 +96,7 @@ return [ 'label' => 'Inscriptions', 'route' => 'formation/inscription', 'resource' => PrivilegeController::getResourceId(InscriptionController::class, 'index') , 'order' => 400, 'order' => 500, ], ], ], Loading
module/Formation/config/others/module.config.php +2 −2 Changes for module/Formation/config/others/module.config.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -2,13 +2,13 @@ namespace Formation; use Formation\Controller\FormationController; use Formation\Controller\ModuleController; use Formation\Controller\ModuleControllerFactory; use Formation\Form\Module\ModuleForm; use Formation\Form\Module\ModuleFormFactory; use Formation\Form\Module\ModuleHydrator; use Formation\Form\Module\ModuleHydratorFactory; use Formation\Provider\Privilege\IndexPrivileges; use Formation\Provider\Privilege\ModulePrivileges; use Formation\Service\Module\ModuleService; use Formation\Service\Module\ModuleServiceFactory; Loading Loading @@ -92,7 +92,7 @@ return [ 'order' => 100, 'pages' => [ 'afficher' => [ 'label' => "Affichage d'un module", 'label' => "Affichage d'une formation", 'route' => 'formation/module/afficher', 'resource' => PrivilegeController::getResourceId(ModuleController::class, 'afficher') , 'order' => 100, Loading
module/Formation/config/others/seance.config.php +1 −1 Changes for module/Formation/config/others/seance.config.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -89,7 +89,7 @@ return [ // 'label' => 'Seances', // 'route' => 'formation/seance', // 'resource' => PrivilegeController::getResourceId(SeanceController::class, 'index') , // 'order' => 300, // 'order' => 400, // ], // ], // ], Loading
module/Formation/config/others/session.config.php +1 −1 Changes for module/Formation/config/others/session.config.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -101,7 +101,7 @@ return [ 'label' => 'Sessions', 'route' => 'formation/session', 'resource' => PrivilegeController::getResourceId(SessionController::class, 'index') , 'order' => 200, 'order' => 300, ], ], ], Loading