Skip to content
Snippets Groups Projects
Select Git revision
  • cada724afb4d2fbf4936b922149579e43d5712af
  • master default protected
  • release_3.0.0
  • test
  • feature_pre_sql
  • develop
  • 3.0.1
  • 3.0.0
  • 2.3.0
  • 2.2.0
  • 2.1.0
  • 2.0.0
  • 1.3.7
  • 1.3.6
  • 1.3.5
  • 1.3.4
  • 1.3.3
  • 1.3.2
  • 1.3.1
  • 1.3.0
  • 1.2.6
  • 1.2.5
  • 1.2.4
  • 1.2.3
  • 1.2.2
  • 1.2.1
26 results

global-development.php

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    demo.config.php 2.90 KiB
    <?php
    
    namespace Application;
    
    return array(
        'router' => array(
            'routes' => array(
                'demo' => array(
                    'type'    => 'Segment',
                    'options' => array(
                        'route'    => '/demo[/:action]',
                        'constraints' => array(
                            'action'     => '[a-zA-Z][a-zA-Z0-9_-]*',
                        ),
                        'defaults' => array(
                            'controller' => 'Application\Controller\Demo',
                            'action'     => 'index',
                        ),
                    ),
                ),
            ),
        ),
        'navigation' => array(
            'default' => array(
                'home' => array(
                    'pages' => array(
                        'demo' => array(
                            'label'    => 'Démo',
                            'route'    => 'demo',
                            'params' => array(
                                'action' => 'index',
                            ),
                            'pages' => array(
    //                            'of' => array(
    //                                'label'  => "Offre de formation",
    //                                'route'  => 'demo',
    //                                'params' => array(
    //                                    'action' => 'of',
    //                                ),
    //                                'visible' => true,
    //                                'pages' => array(),
    //                            ),
                                'intervenant' => array(
                                    'label'  => "Intervenants",
                                    'route'  => 'demo',
                                    'params' => array(
                                        'action' => 'intervenant',
                                    ),
                                    'visible' => true,
                                    'pages' => array(),
                                ),
                                'service-ref' => array(
                                    'label'  => "Service référentiel",
                                    'route'  => 'demo',
                                    'params' => array(
                                        'action' => 'saisir-service-referentiel-intervenant',
                                    ),
                                    'visible' => true,
                                    'pages' => array(),
                                ),
                            ),
                        ),
                    ),
                ),
            ),
        ),
        'bjyauthorize' => array(
            'guards' => array(
                'BjyAuthorize\Guard\Controller' => array(
                    array(
                        'controller' => 'Application\Controller\Demo',
                        'roles' => array('user')),
                ),
            ),
        ),
        'controllers' => array(
            'invokables' => array(
                'Application\Controller\Demo'        => 'Application\Controller\DemoController',
            ),
        ),
    );