array( 'routes' => array( 'home' => array( 'type' => 'Zend\Mvc\Router\Http\Literal', 'options' => array( 'route' => '/', 'defaults' => array( 'controller' => 'Application\Controller\Index', 'action' => 'index', ), ), ), 'contact' => array( 'type' => 'Zend\Mvc\Router\Http\Literal', 'options' => array( 'route' => '/contact', 'defaults' => array( 'controller' => 'Application\Controller\Index', 'action' => 'contact', ), ), ), 'fr' => array( 'type' => 'Zend\Mvc\Router\Http\Literal', 'options' => array( 'route' => '/fr', 'defaults' => array( 'controller' => 'Application\Controller\Index', 'action' => 'fr', ), ), ), 'en' => array( 'type' => 'Zend\Mvc\Router\Http\Literal', 'options' => array( 'route' => '/en', 'defaults' => array( 'controller' => 'Application\Controller\Index', 'action' => 'en', ), ), ), 'login' => array( 'type' => 'Zend\Mvc\Router\Http\Literal', 'options' => array( 'route' => '/login', 'defaults' => array( 'controller' => 'Application\Controller\Index', 'action' => 'login', ), ), ), 'backend' => array( 'type' => 'Zend\Mvc\Router\Http\Literal', 'options' => array( 'route' => '/zfcuser/login', ), ), 'backend-login' => array( 'type' => 'Zend\Mvc\Router\Http\Literal', 'options' => array( 'route' => '/zfcuser/login', ), ), 'list' => array( 'type' => 'Zend\Mvc\Router\Http\Literal', 'options' => array( 'route' => '/list', 'defaults' => array( 'controller' => 'Application\Controller\Index', 'action' => 'list', ), ), 'may_terminate' => true, 'child_routes' => array( 'default' => array( 'type' => 'Segment', 'options' => array( 'route' => '/[:controller[/:action[/:id]]]', 'constraints' => array( 'controller' => '[a-zA-Z][a-zA-Z0-9_-]*', 'action' => '[a-zA-Z][a-zA-Z0-9_-]*', 'id' => '[0-9]*', ), 'defaults' => array( ), ), ), ), ), //TODO Tests (modif marc aurele) 'ecrire_xml' => array( 'type' => 'Zend\Mvc\Router\Http\Literal', 'options' => array( 'route' => '/webServices', 'defaults' => array( 'controller' => 'Application\Controller\XML', 'action' => 'index', ), ), 'may_terminate' => true, /*'child_routes' => array( 'default' => array( 'type' => 'Segment', 'route' => '/webServices[/:mode[/:xml]]', 'options' => array( 'route' => '/[/:mode[/:xml]]', 'constraints' => array( 'mode' => '[a-zA-Z][a-zA-Z0-9_-]*', 'xml' => '[0-9]*', ), 'defaults' => array( 'controller' => 'Application\Controller\XML', 'action' => 'index', ), ), ), ),*/ ), 'ecrire_xml2' => array( 'type' => 'Zend\Mvc\Router\Http\Segment', 'options' => array( 'route' => '/webServices/webServices[/:mode[/:xml]]', 'constraints' => array( 'mode' => '[a-zA-Z][a-zA-Z0-9_-]*', 'xml' => '[0-9]*', ), 'defaults' => array( 'controller' => 'Application\Controller\XML', 'action' => 'index', ), ), 'may_terminate' => true, ), 'appServices' => array( 'type' => 'Zend\Mvc\Router\Http\Literal', 'options' => array( 'route' => '/appServices/info', 'defaults' => array( 'controller' => 'Application\Controller\appServices', 'action' => 'MesInfos', ), ), 'may_terminate' => true, ), // The following is a route to simplify getting started creating // new controllers and actions without needing to create a new // module. Simply drop new controllers in, and you can access them // using the path /application/:controller/:action 'reservation' => array( 'type' => 'Zend\Mvc\Router\Http\Literal', 'options' => array( 'route' => '/reservation', 'defaults' => array( 'controller' => 'Application\Controller\Index', 'action' => 'index', ), ), 'may_terminate' => true, 'child_routes' => array( 'ecole' => array( 'type' => 'Segment', 'route' => '/reservation[/:action[/:id]]', 'options' => array( 'route' => '/[:action[/:id]]', 'constraints' => array( 'action' => '[a-zA-Z][a-zA-Z0-9_-]*', 'id' => '[0-9]*', ), 'defaults' => array( 'controller' => 'Application\Controller\Reservation', 'action' => 'index', ), ), ), 'ajax' => array( 'type' => 'Segment', 'route' => '/reservation[/:action[/:id]]', 'options' => array( 'route' => '/[:action[/:id]]', 'constraints' => array( 'action' => '[a-zA-Z][a-zA-Z0-9_-]*', 'id' => '[0-9]*', ), 'defaults' => array( 'controller' => 'Application\Controller\Index', 'action' => 'index', ), ), ), 'infos' => array( 'type' => 'Segment', 'route' => '/reservation[/:action[/:id]]', 'options' => array( 'route' => '/[:action[/:id]]', 'constraints' => array( 'action' => '[a-zA-Z][a-zA-Z0-9_-]*', 'id' => '[0-9]*', ), 'defaults' => array( 'controller' => 'Application\Controller\Reservation', 'action' => 'index', ), ), ), 'logement' => array( 'type' => 'Segment', 'route' => '/reservation[/:action[/:id]]', 'options' => array( 'route' => '/[:action[/:id]]', 'constraints' => array( 'action' => '[a-zA-Z][a-zA-Z0-9_-]*', 'id' => '[0-9]*', ), 'defaults' => array( 'controller' => 'Application\Controller\Reservation', 'action' => 'index', ), ), ), 'recap' => array( 'type' => 'Segment', 'route' => '/reservation[/:action[/:id]]', 'options' => array( 'route' => '/[:action[/:id]]', 'constraints' => array( 'action' => '[a-zA-Z][a-zA-Z0-9_-]*', 'id' => '[0-9]*', ), 'defaults' => array( 'controller' => 'Application\Controller\Reservation', 'action' => 'index', ), ), ), 'paiement' => array( 'type' => 'Segment', 'route' => '/reservation[/:action[/:id]]', 'options' => array( 'route' => '/[:action[/:id]]', 'constraints' => array( 'action' => '[a-zA-Z][a-zA-Z0-9_-]*', 'id' => '[0-9a-zA-Z]*', ), 'defaults' => array( 'controller' => 'Application\Controller\Reservation', 'action' => 'index', ), ), ), 'payer' => array( 'type' => 'Segment', 'route' => '/reservation[/:action[/:id]]', 'options' => array( 'route' => '/[:action[/:id]]', 'constraints' => array( 'action' => '[a-zA-Z][a-zA-Z0-9_-]*', 'id' => '[0-9a-zA-Z]*', ), 'defaults' => array( 'controller' => 'Application\Controller\Reservation', 'action' => 'index', ), ), ), 'conditions' => array( 'type' => 'Segment', 'route' => '/reservation[/:action[/:id]]', 'options' => array( 'route' => '/[:action[/:id]]', 'constraints' => array( 'action' => '[a-zA-Z][a-zA-Z0-9_-]*', 'id' => '[0-9a-zA-Z]*', ), 'defaults' => array( 'controller' => 'Application\Controller\Reservation', 'action' => 'index', ), ), ), 'paiementok' => array( 'type' => 'Segment', 'route' => '/reservation[/:action[/:id]]', 'options' => array( 'route' => '/[:action[/:id]]', 'constraints' => array( 'action' => '[a-zA-Z][a-zA-Z0-9_-]*', 'id' => '[0-9a-zA-Z]*', ), 'defaults' => array( 'controller' => 'Application\Controller\Reservation', 'action' => 'index', ), ), ), 'paiementko' => array( 'type' => 'Segment', 'route' => '/reservation[/:action[/:id]]', 'options' => array( 'route' => '/[:action[/:id]]', 'constraints' => array( 'action' => '[a-zA-Z][a-zA-Z0-9_-]*', 'id' => '[0-9a-zA-Z]*', ), 'defaults' => array( 'controller' => 'Application\Controller\Reservation', 'action' => 'index', ), ), ), 'soap' => array( 'type' => 'Segment', 'route' => '/reservation[/:action[/:id]]', 'options' => array( 'route' => '/[:action[/:id]]', 'constraints' => array( 'action' => '[a-zA-Z][a-zA-Z0-9_-]*', 'id' => '[0-9a-zA-Z]*', ), 'defaults' => array( 'controller' => 'Application\Controller\Reservation', 'action' => 'index', ), ), ), 'paiementcancel' => array( 'type' => 'Segment', 'route' => '/reservation[/:action[/:id]]', 'options' => array( 'route' => '/[:action[/:id]]', 'constraints' => array( 'action' => '[a-zA-Z][a-zA-Z0-9_-]*', 'id' => '[0-9a-zA-Z]*', ), 'defaults' => array( 'controller' => 'Application\Controller\Reservation', 'action' => 'index', ), ), ), 'paiementvalide' => array( 'type' => 'Segment', 'route' => '/reservation[/:action[/:id]]', 'options' => array( 'route' => '/[:action[/:id]]', 'constraints' => array( 'action' => '[a-zA-Z][a-zA-Z0-9_-]*', 'id' => '[0-9]*', ), 'defaults' => array( 'controller' => 'Application\Controller\Reservation', 'action' => 'index', ), ), ), 'valider' => array( 'type' => 'Segment', 'route' => '/reservation[/:action[/:id]]', 'options' => array( 'route' => '/[:action[/:id]]', 'constraints' => array( 'action' => '[a-zA-Z][a-zA-Z0-9_-]*', 'id' => '[0-9]*', ), 'defaults' => array( 'controller' => 'Application\Controller\Reservation', 'action' => 'index', ), ), ), ), ), ), ), 'bjyauthorize' => array( 'unauthorized_strategy' => 'Application\View\UnauthorizedStrategy', ), 'service_manager' => array( 'abstract_factories' => array( 'Zend\Cache\Service\StorageCacheAbstractServiceFactory', 'Zend\Log\LoggerAbstractServiceFactory', ), 'aliases' => array( 'translator' => 'MvcTranslator', ), 'factories' => array( 'BjyAuthorize\View\UnauthorizedStrategy' => 'Application\View\UnauthorizedStrategy', ), ), 'translator' => array( 'locale' => 'en_US', 'translation_file_patterns' => array( array( 'type' => 'gettext', 'base_dir' => __DIR__ . '/../language', 'pattern' => '%s.mo', ), ), ), 'controllers' => array( 'invokables' => array( 'Application\Controller\Index' => 'Application\Controller\IndexController', 'Application\Controller\Reservation' => 'Application\Controller\ReservationController', 'Application\Controller\XML' => 'Application\Controller\XMLController', 'Application\Controller\appServices' => 'Application\Controller\appServicesController', ), ), 'view_manager' => array( 'display_not_found_reason' => true, 'display_exceptions' => true, 'doctype' => 'HTML5', 'not_found_template' => 'error/404', 'exception_template' => 'error/index', 'template_map' => array( 'layout/layout' => __DIR__ . '/../view/layout/layout.phtml', 'application/index/index' => __DIR__ . '/../view/application/index/index.phtml', 'error/404' => __DIR__ . '/../view/error/404.phtml', 'error/index' => __DIR__ . '/../view/error/index.phtml', ), 'template_path_stack' => array( __DIR__ . '/../view', ), //other configuration 'strategies' => array( 'ViewJsonStrategy', ), ), // Placeholder for console routes 'console' => array( 'router' => array( 'routes' => array( ), ), ), );