%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/bbw/farmaci/kritik-portale/module/Album/config/
Upload File :
Create Path :
Current File : /var/www/html/bbw/farmaci/kritik-portale/module/Album/config/module.config.php

<?php
namespace Album;

return array(
//         'router' => array(
//         'routes' => array(
//             'album' => array(
//                 'type'    => 'segment',
//                 'options' => array(
//                     'route'    => '/album[/:action][/:id]',
//                     'constraints' => array(
//                         'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
//                         'id'     => '[0-9]+',
//                     ),
//                     'defaults' => array(
//                         'controller' => 'Album\Controller\Album',
//                         'action'     => 'index',
//                     ),
//                 ),
//             ),
//         ),
//     ),

    'router' => array(
        'routes' => array(
            'album' => array(
                'type'    => 'Literal',
                'options' => array(
                    'route'    => '/album',
                    'defaults' => array(
                        'controller'    => 'Album\Controller\Album',
                        'action'        => 'index',
                    ),
                ),
                'may_terminate' => true,
                'child_routes' => array(
                    'default' => array(
                        'type'    => 'Segment',
                        'options' => array(
                            'route'    => '/[:action[/:id]]',
                            'constraints' => array(                                
                                'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                                'id'     => '[0-9]+',
                            ),
                            'defaults' => array(
                            ),
                        ),
                    ),
                ),
            ),
        ),
    ),
    'controllers' => array(
         'invokables' => array(
             'Album\Controller\Album' => 'Album\Controller\AlbumController',
         ),
     ),
    'service_manager' => array(
             'factories' => array(
                 'Zend\Db\Adapter\Adapter'
                         => 'Zend\Db\Adapter\AdapterServiceFactory',
             ),
    ),
    'view_manager' => array(
        'template_path_stack' => array(
            'album' => __DIR__ . '/../view',
        ),
    ),    
    'zfc_rbac' => [
        /**
         * Set the guards
         *
         * You must comply with the various options of guards. The format must be of the following format:
         *
         *      'guards' => [
         *          'ZfcRbac\Guard\RouteGuard' => [
         *              // options
         *          ]
         *      ]
         */
        'guards' => [
            //RouteGuard - Protects a route or hierarchy of routes (key is a route pattern - value an array of role names)
            'ZfcRbac\Guard\RouteGuard' => [//only one permission in the rule must be matched (OR)
                'album*' => ['*'],
            ],            
         ],

        /**
         * Configuration for role provider
         *
         * It must be an array that contains configuration for the role provider. The provider config
         * must follow the following format:
         *
         *      'ZfcRbac\Role\InMemoryRoleProvider' => [
         *          'role1' => [
         *              'children'    => ['children1', 'children2'], // OPTIONAL
         *              'permissions' => ['edit', 'read'] // OPTIONAL
         *          ]
         *      ]
         *
         * Supported options depend of the role provider, so please refer to the official documentation
         */
        'role_provider' => [        
            'ZfcRbac\Role\InMemoryRoleProvider' => [
            ]
        ],
    ],
 );

Zerion Mini Shell 1.0