<?php
return array(
    'controllers' => array(
        'factories' => array(
            'Infermiere\Controller\Dashboard' => 'Infermiere\Factory\DashboardControllerFactory',
        ),
    ),
    'router' => array(
        'routes' => array(
            'infermiere' => array(
                'type' => 'Zend\Mvc\Router\Http\Literal',
                'options' => array(
                    'route' => '/infermiere',
                    'defaults' => array(
                        'controller' => 'Infermiere\Controller\Dashboard',
                        'action' => 'index'
                    )
                )
            ),
        ),
    ),
    'view_manager' => array(
        'template_path_stack' => array(
            'Infermiere' => __DIR__ . '/../view',
        ),
    ),

    // Module Infermiere ACL
    'bjyauthorize' => array(
        'guards' => array(
            'BjyAuthorize\Guard\Controller' => array(

                // Controller Dashboard
                array('controller' => 'Infermiere\Controller\Dashboard', 'roles' => array('infermiere')),
            ),
        ),
    ),
);
