Guest User

Untitled

a guest
Oct 16th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.61 KB | None | 0 0
  1. <?php
  2.  
  3. return array(
  4.     'controllers' => array(
  5.         'invokables' => array(
  6.             'Access\Controller\Login' => 'Access\Controller\LoginController',
  7.             'Access\Controller\Logout' => 'Access\Controller\LogoutController'
  8.         ),
  9.     ),
  10.     'router' => array(
  11.         'routes' => array(
  12.             'access' => array(
  13.                 'type'    => 'Literal',
  14.                 'options' => array(
  15.                     'route'    => '/access',
  16.                     'defaults' => array(
  17.                         '__NAMESPACE__' => 'Access\Controller',
  18.                         'controller'    => 'Login',
  19.                         'action'        => 'index',
  20.                     ),
  21.                 ),
  22.                 'may_terminate' => true,
  23.                 'child_routes'  => array(
  24.                     'default' => array(
  25.                         'type'    => 'Segment',
  26.                         'options' => array(
  27.                             'route' => '/[:controller[/[:action[/[:id]]]]]',
  28.                             'constraints' => array(
  29.                                 'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
  30.                                 'action'     => '[a-zA-Z][a-zA-Z0-9_-]*',
  31.                                 'id'         => '[0-9]+'
  32.                             ),
  33.                             'defaults' => array(
  34.                             ),
  35.                         )
  36.                     ),
  37.                 ),
  38.             ),
  39.         ),
  40.     ),
  41.     'view_manager' => array(
  42.         'template_path_stack' => array(
  43.             'album' => __DIR__ . '/../view',
  44.         ),
  45.     ),
  46. );
Add Comment
Please, Sign In to add comment