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

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

                // Controller Dashboard
                array('controller' => 'Medico\Controller\Dashboard', 'roles' => array('medico')),
            ),
        ),
    ),

);
