Corrections diverses
[zf2.biz/galerie.git] / module / Auth / config / module.config.php
diff --git a/module/Auth/config/module.config.php b/module/Auth/config/module.config.php
new file mode 100644 (file)
index 0000000..0972b3c
--- /dev/null
@@ -0,0 +1,49 @@
+<?php
+/**
+ * Application blanche   (http://zf2.biz)
+ * utiise Zend Framework (http://framework.zend.com/)
+ *
+ * @link      http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license   http://framework.zend.com/license/new-bsd New BSD License
+ */
+
+return array(
+    'router' => array(
+        'routes' => array(
+            'auth' => array(
+                'type'    => 'Literal',
+                'options' => array(
+                    'route'    => '/login',
+                    'defaults' => array(
+                        '__NAMESPACE__' => 'Auth\Controller',
+                        'controller'    => 'Index',
+                        'action'        => 'index',
+                    ),
+                ),
+                'may_terminate' => true,
+            ),
+        ),
+    ),
+    'controllers' => array(
+        'invokables' => array(
+            'Auth\Controller\Index' => 'Auth\Controller\IndexController'
+        ),
+    ),
+    '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__ . '/../../Application/view/layout/layout.phtml',
+            'error/404'        => __DIR__ . '/../../Application/view/error/404.phtml',
+            'error/index'      => __DIR__ . '/../../Application/view/error/index.phtml',
+            'auth/index/index' => __DIR__ . '/../view/auth/index/index.phtml',
+        ),
+        'template_path_stack' => array(
+            __DIR__ . '/../view',
+        ),
+    ),
+);