Loading config/merged/affectation.config.php +100 Changes for config/merged/affectation.config.php: 100 added lines, 0 removed lines. Original line number Diff line number Diff line <?php use UnicaenPrivilege\Controller\AffectationController; use UnicaenPrivilege\Controller\AffectationControllerFactory; use UnicaenPrivilege\Controller\ConfigurationController; use UnicaenPrivilege\Controller\ConfigurationControllerFactory; use UnicaenPrivilege\Provider\Privilege\PrivilegePrivileges; use Zend\Router\Http\Literal; use Zend\Router\Http\Segment; return [ 'bjyauthorize' => [ 'guards' => [ UnicaenPrivilege\Guard\PrivilegeController::class => [ [ 'controller' => AffectationController::class, 'action' => [ 'index', 'modifier' ], 'privileges' => [ PrivilegePrivileges::PRIVILEGE_VOIR, ], ], ], ], ], 'navigation' => [ 'default' => [ 'home' => [ 'pages' => [ 'administration' => [ 'pages' => [ 'privilege' => [ 'label' => 'Privilège', 'route' => 'unicaen-privilege/affectation', 'resource' => \UnicaenPrivilege\Guard\PrivilegeController::getResourceId(AffectationController::class, 'index'), 'order' => 5000, ], ], ], ], ], ], ], 'router' => [ 'routes' => [ 'unicaen-privilege' => [ 'type' => Literal::class, 'options' => [ 'route' => '/unicaen-privilege', ], 'may_terminate' => false, 'child_routes' => [ 'affectation' => [ 'type' => Literal::class, 'options' => [ 'route' => '/affectation', 'defaults' => [ 'controller' => AffectationController::class, 'action' => 'index', ], ], ], 'modifier-affectation' => [ 'type' => Segment::class, 'options' => [ 'route' => '/modifier-affectation/:role/:privilege', 'defaults' => [ 'controller' => AffectationController::class, 'action' => 'modifier', ], ], ], ], ], ], ], 'service_manager' => [ 'factories' => [], ], 'controllers' => [ 'factories' => [ AffectationController::class => AffectationControllerFactory::class, ], ], 'form_elements' => [ 'factories' => [], ], 'hydrators' => [ 'factories' => [], ] ]; No newline at end of file config/merged/categorie.config.php +144 Changes for config/merged/categorie.config.php: 144 added lines, 0 removed lines. Original line number Diff line number Diff line <?php use UnicaenPrivilege\Controller\CategorieController; use UnicaenPrivilege\Controller\CategorieControllerFactory; use UnicaenPrivilege\Form\Categorie\CategorieForm; use UnicaenPrivilege\Form\Categorie\CategorieFormFactory; use UnicaenPrivilege\Form\Categorie\CategorieHydrator; use UnicaenPrivilege\Form\Categorie\CategorieHydratorFactory; use UnicaenPrivilege\Provider\Privilege\PrivilegePrivileges; use UnicaenPrivilege\Service\Categorie\CategorieService; use UnicaenPrivilege\Service\Categorie\CategorieServiceFactory; use Zend\Router\Http\Literal; use Zend\Router\Http\Segment; return [ 'bjyauthorize' => [ 'guards' => [ UnicaenPrivilege\Guard\PrivilegeController::class => [ [ 'controller' => CategorieController::class, 'action' => [ 'index', 'ajouter', 'gerer', 'provider', 'modifier', 'supprimer', ], 'privileges' => [ PrivilegePrivileges::PRIVILEGE_AJOUTER, ], ], ], ], ], 'router' => [ 'routes' => [ 'unicaen-privilege' => [ 'type' => Literal::class, 'options' => [ 'route' => '/unicaen-privilege', ], 'may_terminate' => false, 'child_routes' => [ 'categorie' => [ 'type' => Literal::class, 'options' => [ 'route' => '/categorie', 'defaults' => [ 'controller' => CategorieController::class, 'action' => 'index', ], ], 'may_terminate' => true, 'child_routes' => [ 'ajouter' => [ 'type' => Literal::class, 'options' => [ 'route' => '/ajouter', 'defaults' => [ 'controller' => CategorieController::class, 'action' => 'ajouter', ], ], ], 'gerer' => [ 'type' => Segment::class, 'options' => [ 'route' => '/gerer/:categorie', 'defaults' => [ 'controller' => CategorieController::class, 'action' => 'gerer', ], ], 'may_terminate' => true, ], 'provider' => [ 'type' => Segment::class, 'options' => [ 'route' => '/provider/:categorie', 'defaults' => [ 'controller' => CategorieController::class, 'action' => 'provider', ], ], 'may_terminate' => true, ], 'modifier' => [ 'type' => Segment::class, 'options' => [ 'route' => '/modifier/:categorie', 'defaults' => [ 'controller' => CategorieController::class, 'action' => 'modifier', ], ], 'may_terminate' => true, ], 'supprimer' => [ 'type' => Segment::class, 'options' => [ 'route' => '/supprimer/:categorie', 'defaults' => [ 'controller' => CategorieController::class, 'action' => 'supprimer', ], ], 'may_terminate' => true, ], ], ], ], ], ], ], 'navigation' => [ 'default' => [ ], ], 'controllers' => [ 'factories' => [ CategorieController::class => CategorieControllerFactory::class, ], ], 'service_manager' => [ 'factories' => [ CategorieService::class => CategorieServiceFactory::class, ], ], 'form_elements' => [ 'factories' => [ CategorieForm::class => CategorieFormFactory::class, ], ], 'hydrators' => [ 'factories' => [ CategorieHydrator::class => CategorieHydratorFactory::class, ], ], ]; No newline at end of file config/merged/configuration.config.php −238 File deleted. Show changes config/merged/pivilege.config.php +56 −40 Changes for config/merged/pivilege.config.php: 56 added lines, 40 removed lines. Original line number Diff line number Diff line Loading @@ -2,6 +2,10 @@ use UnicaenPrivilege\Controller\PrivilegeController; use UnicaenPrivilege\Controller\PrivilegeControllerFactory; use UnicaenPrivilege\Form\Privilege\PrivilegeForm; use UnicaenPrivilege\Form\Privilege\PrivilegeFormFactory; use UnicaenPrivilege\Form\Privilege\PrivilegeHydrator; use UnicaenPrivilege\Form\Privilege\PrivilegeHydratorFactory; use UnicaenPrivilege\Provider\Privilege\PrivilegePrivileges; use UnicaenPrivilege\Provider\Rule\PrivilegeRuleProvider; use UnicaenPrivilege\Provider\Rule\PrivilegeRuleProviderFactory; Loading @@ -18,84 +22,96 @@ return [ [ 'controller' => PrivilegeController::class, 'action' => [ 'index', ], 'privileges' => [ PrivilegePrivileges::PRIVILEGE_VOIR, ], ], [ 'controller' => PrivilegeController::class, 'action' => [ 'ajouter', 'modifier', 'supprimer', ], 'privileges' => [ PrivilegePrivileges::PRIVILEGE_AFFECTER, PrivilegePrivileges::PRIVILEGE_AJOUTER, ], ], ], ], ], 'controllers' => [ 'invokables' => [], 'factories' => [ PrivilegeController::class => PrivilegeControllerFactory::class, ], ], 'service_manager' => [ 'factories' => [ PrivilegeService::class => PrivilegeServiceFactory::class, PrivilegeRuleProvider::class => PrivilegeRuleProviderFactory::class, //ne sert pas ... ], ], 'router' => [ 'routes' => [ 'unicaen-privilege' => [ 'type' => Literal::class, 'options' => [ 'route' => '/unicaen-privilege', ], 'may_terminate' => false, 'child_routes' => [ 'privilege' => [ 'type' => Literal::class, 'options' => [ 'route' => '/privilege', 'defaults' => [ 'controller' => PrivilegeController::class, 'action' => 'index', ], ], 'may_terminate' => true, 'may_terminate' => false, 'child_routes' => [ 'ajouter' => [ 'type' => Segment::class, 'options' => [ 'route' => '/ajouter/:categorie', 'defaults' => [ 'controller' => PrivilegeController::class, 'action' => 'ajouter', ], ], 'modifier-privilege' => [ ], 'modifier' => [ 'type' => Segment::class, 'options' => [ 'route' => '/modifier-privilege/:role/:privilege', 'route' => '/modifier/:privilege', 'defaults' => [ 'controller' => PrivilegeController::class, 'action' => 'modifier', ], ], ], 'supprimer' => [ 'type' => Segment::class, 'options' => [ 'route' => '/supprimer/:privilege', 'defaults' => [ 'controller' => PrivilegeController::class, 'action' => 'supprimer', ], ], ], ], ], ], ], ], ], 'navigation' => [ 'default' => [ 'home' => [ 'pages' => [ 'administration' => [ 'pages' => [ 'privilege' => [ 'label' => 'Privilège', 'route' => 'privilege', 'resource' => \UnicaenPrivilege\Guard\PrivilegeController::getResourceId(PrivilegeController::class, 'index'), 'order' => 5000, 'controllers' => [ 'factories' => [ PrivilegeController::class => PrivilegeControllerFactory::class, ], ], 'service_manager' => [ 'factories' => [ PrivilegeService::class => PrivilegeServiceFactory::class, PrivilegeRuleProvider::class => PrivilegeRuleProviderFactory::class, ], ], 'form_elements' => [ 'factories' => [ PrivilegeForm::class => PrivilegeFormFactory::class, ], ], 'hydrators' => [ 'factories' => [ PrivilegeHydrator::class => PrivilegeHydratorFactory::class, ], ], ]; No newline at end of file src/UnicaenPrivilege/Controller/AffectationController.php +53 File added.Preview size limit exceeded, changes collapsed. Show changes Loading
config/merged/affectation.config.php +100 Changes for config/merged/affectation.config.php: 100 added lines, 0 removed lines. Original line number Diff line number Diff line <?php use UnicaenPrivilege\Controller\AffectationController; use UnicaenPrivilege\Controller\AffectationControllerFactory; use UnicaenPrivilege\Controller\ConfigurationController; use UnicaenPrivilege\Controller\ConfigurationControllerFactory; use UnicaenPrivilege\Provider\Privilege\PrivilegePrivileges; use Zend\Router\Http\Literal; use Zend\Router\Http\Segment; return [ 'bjyauthorize' => [ 'guards' => [ UnicaenPrivilege\Guard\PrivilegeController::class => [ [ 'controller' => AffectationController::class, 'action' => [ 'index', 'modifier' ], 'privileges' => [ PrivilegePrivileges::PRIVILEGE_VOIR, ], ], ], ], ], 'navigation' => [ 'default' => [ 'home' => [ 'pages' => [ 'administration' => [ 'pages' => [ 'privilege' => [ 'label' => 'Privilège', 'route' => 'unicaen-privilege/affectation', 'resource' => \UnicaenPrivilege\Guard\PrivilegeController::getResourceId(AffectationController::class, 'index'), 'order' => 5000, ], ], ], ], ], ], ], 'router' => [ 'routes' => [ 'unicaen-privilege' => [ 'type' => Literal::class, 'options' => [ 'route' => '/unicaen-privilege', ], 'may_terminate' => false, 'child_routes' => [ 'affectation' => [ 'type' => Literal::class, 'options' => [ 'route' => '/affectation', 'defaults' => [ 'controller' => AffectationController::class, 'action' => 'index', ], ], ], 'modifier-affectation' => [ 'type' => Segment::class, 'options' => [ 'route' => '/modifier-affectation/:role/:privilege', 'defaults' => [ 'controller' => AffectationController::class, 'action' => 'modifier', ], ], ], ], ], ], ], 'service_manager' => [ 'factories' => [], ], 'controllers' => [ 'factories' => [ AffectationController::class => AffectationControllerFactory::class, ], ], 'form_elements' => [ 'factories' => [], ], 'hydrators' => [ 'factories' => [], ] ]; No newline at end of file
config/merged/categorie.config.php +144 Changes for config/merged/categorie.config.php: 144 added lines, 0 removed lines. Original line number Diff line number Diff line <?php use UnicaenPrivilege\Controller\CategorieController; use UnicaenPrivilege\Controller\CategorieControllerFactory; use UnicaenPrivilege\Form\Categorie\CategorieForm; use UnicaenPrivilege\Form\Categorie\CategorieFormFactory; use UnicaenPrivilege\Form\Categorie\CategorieHydrator; use UnicaenPrivilege\Form\Categorie\CategorieHydratorFactory; use UnicaenPrivilege\Provider\Privilege\PrivilegePrivileges; use UnicaenPrivilege\Service\Categorie\CategorieService; use UnicaenPrivilege\Service\Categorie\CategorieServiceFactory; use Zend\Router\Http\Literal; use Zend\Router\Http\Segment; return [ 'bjyauthorize' => [ 'guards' => [ UnicaenPrivilege\Guard\PrivilegeController::class => [ [ 'controller' => CategorieController::class, 'action' => [ 'index', 'ajouter', 'gerer', 'provider', 'modifier', 'supprimer', ], 'privileges' => [ PrivilegePrivileges::PRIVILEGE_AJOUTER, ], ], ], ], ], 'router' => [ 'routes' => [ 'unicaen-privilege' => [ 'type' => Literal::class, 'options' => [ 'route' => '/unicaen-privilege', ], 'may_terminate' => false, 'child_routes' => [ 'categorie' => [ 'type' => Literal::class, 'options' => [ 'route' => '/categorie', 'defaults' => [ 'controller' => CategorieController::class, 'action' => 'index', ], ], 'may_terminate' => true, 'child_routes' => [ 'ajouter' => [ 'type' => Literal::class, 'options' => [ 'route' => '/ajouter', 'defaults' => [ 'controller' => CategorieController::class, 'action' => 'ajouter', ], ], ], 'gerer' => [ 'type' => Segment::class, 'options' => [ 'route' => '/gerer/:categorie', 'defaults' => [ 'controller' => CategorieController::class, 'action' => 'gerer', ], ], 'may_terminate' => true, ], 'provider' => [ 'type' => Segment::class, 'options' => [ 'route' => '/provider/:categorie', 'defaults' => [ 'controller' => CategorieController::class, 'action' => 'provider', ], ], 'may_terminate' => true, ], 'modifier' => [ 'type' => Segment::class, 'options' => [ 'route' => '/modifier/:categorie', 'defaults' => [ 'controller' => CategorieController::class, 'action' => 'modifier', ], ], 'may_terminate' => true, ], 'supprimer' => [ 'type' => Segment::class, 'options' => [ 'route' => '/supprimer/:categorie', 'defaults' => [ 'controller' => CategorieController::class, 'action' => 'supprimer', ], ], 'may_terminate' => true, ], ], ], ], ], ], ], 'navigation' => [ 'default' => [ ], ], 'controllers' => [ 'factories' => [ CategorieController::class => CategorieControllerFactory::class, ], ], 'service_manager' => [ 'factories' => [ CategorieService::class => CategorieServiceFactory::class, ], ], 'form_elements' => [ 'factories' => [ CategorieForm::class => CategorieFormFactory::class, ], ], 'hydrators' => [ 'factories' => [ CategorieHydrator::class => CategorieHydratorFactory::class, ], ], ]; No newline at end of file
config/merged/pivilege.config.php +56 −40 Changes for config/merged/pivilege.config.php: 56 added lines, 40 removed lines. Original line number Diff line number Diff line Loading @@ -2,6 +2,10 @@ use UnicaenPrivilege\Controller\PrivilegeController; use UnicaenPrivilege\Controller\PrivilegeControllerFactory; use UnicaenPrivilege\Form\Privilege\PrivilegeForm; use UnicaenPrivilege\Form\Privilege\PrivilegeFormFactory; use UnicaenPrivilege\Form\Privilege\PrivilegeHydrator; use UnicaenPrivilege\Form\Privilege\PrivilegeHydratorFactory; use UnicaenPrivilege\Provider\Privilege\PrivilegePrivileges; use UnicaenPrivilege\Provider\Rule\PrivilegeRuleProvider; use UnicaenPrivilege\Provider\Rule\PrivilegeRuleProviderFactory; Loading @@ -18,84 +22,96 @@ return [ [ 'controller' => PrivilegeController::class, 'action' => [ 'index', ], 'privileges' => [ PrivilegePrivileges::PRIVILEGE_VOIR, ], ], [ 'controller' => PrivilegeController::class, 'action' => [ 'ajouter', 'modifier', 'supprimer', ], 'privileges' => [ PrivilegePrivileges::PRIVILEGE_AFFECTER, PrivilegePrivileges::PRIVILEGE_AJOUTER, ], ], ], ], ], 'controllers' => [ 'invokables' => [], 'factories' => [ PrivilegeController::class => PrivilegeControllerFactory::class, ], ], 'service_manager' => [ 'factories' => [ PrivilegeService::class => PrivilegeServiceFactory::class, PrivilegeRuleProvider::class => PrivilegeRuleProviderFactory::class, //ne sert pas ... ], ], 'router' => [ 'routes' => [ 'unicaen-privilege' => [ 'type' => Literal::class, 'options' => [ 'route' => '/unicaen-privilege', ], 'may_terminate' => false, 'child_routes' => [ 'privilege' => [ 'type' => Literal::class, 'options' => [ 'route' => '/privilege', 'defaults' => [ 'controller' => PrivilegeController::class, 'action' => 'index', ], ], 'may_terminate' => true, 'may_terminate' => false, 'child_routes' => [ 'ajouter' => [ 'type' => Segment::class, 'options' => [ 'route' => '/ajouter/:categorie', 'defaults' => [ 'controller' => PrivilegeController::class, 'action' => 'ajouter', ], ], 'modifier-privilege' => [ ], 'modifier' => [ 'type' => Segment::class, 'options' => [ 'route' => '/modifier-privilege/:role/:privilege', 'route' => '/modifier/:privilege', 'defaults' => [ 'controller' => PrivilegeController::class, 'action' => 'modifier', ], ], ], 'supprimer' => [ 'type' => Segment::class, 'options' => [ 'route' => '/supprimer/:privilege', 'defaults' => [ 'controller' => PrivilegeController::class, 'action' => 'supprimer', ], ], ], ], ], ], ], ], ], 'navigation' => [ 'default' => [ 'home' => [ 'pages' => [ 'administration' => [ 'pages' => [ 'privilege' => [ 'label' => 'Privilège', 'route' => 'privilege', 'resource' => \UnicaenPrivilege\Guard\PrivilegeController::getResourceId(PrivilegeController::class, 'index'), 'order' => 5000, 'controllers' => [ 'factories' => [ PrivilegeController::class => PrivilegeControllerFactory::class, ], ], 'service_manager' => [ 'factories' => [ PrivilegeService::class => PrivilegeServiceFactory::class, PrivilegeRuleProvider::class => PrivilegeRuleProviderFactory::class, ], ], 'form_elements' => [ 'factories' => [ PrivilegeForm::class => PrivilegeFormFactory::class, ], ], 'hydrators' => [ 'factories' => [ PrivilegeHydrator::class => PrivilegeHydratorFactory::class, ], ], ]; No newline at end of file
src/UnicaenPrivilege/Controller/AffectationController.php +53 File added.Preview size limit exceeded, changes collapsed. Show changes