Select Git revision
structure.config.php
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
structure.config.php 2.62 KiB
<?php
namespace Application;
return array(
'router' => array(
'routes' => array(
'structure' => array(
'type' => 'Literal',
'options' => array(
'route' => '/structure',
'defaults' => array(
'__NAMESPACE__' => 'Application\Controller',
'controller' => 'Structure',
'action' => 'index',
),
),
'may_terminate' => true,
'child_routes' => array(
'modifier' => array(
'type' => 'Segment',
'options' => array(
'route' => '/modifier/:id',
'constraints' => array(
'id' => '[0-9]*',
),
'defaults' => array(
'action' => 'modifier',
),
),
),
'recherche' => array(
'type' => 'Segment',
'options' => array(
'route' => '/recherche[/:term]',
'defaults' => array(
'action' => 'recherche',
),
),
),
'default' => array(
'type' => 'Segment',
'options' => array(
'route' => '/:action[/:id]',
'constraints' => array(
'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
'id' => '[0-9]*',
),
'defaults' => array(
'action' => 'index',
),
),
),
),
),
),
),
'bjyauthorize' => array(
'guards' => array(
'BjyAuthorize\Guard\Controller' => array(
array(
'controller' => 'Application\Controller\Structure',
//'action' => array('index', 'choisir', 'modifier', 'rechercher', 'voir', 'search'),
'roles' => array('user')),
),
),
),
'controllers' => array(
'invokables' => array(
'Application\Controller\Structure' => 'Application\Controller\StructureController',
),
),
);