Module galerie: Ajout d'une configuration minimale
authorSébastien CHAZALLET <s.chazallet@gmail.com>
Fri, 2 Nov 2012 09:25:45 +0000 (10:25 +0100)
committerSébastien CHAZALLET <s.chazallet@gmail.com>
Fri, 2 Nov 2012 09:25:45 +0000 (10:25 +0100)
module/Galerie/Module.php
module/Galerie/config/module.config.php [new file with mode: 0644]

index ec14bd8..8db0faa 100644 (file)
@@ -3,9 +3,11 @@
 namespace Galerie;
 
 use Zend\ModuleManager\Feature\AutoloaderProviderInterface;
+use Zend\ModuleManager\Feature\ConfigProviderInterface;
 
 class Module implements
-    AutoloaderProviderInterface 
+    AutoloaderProviderInterface,
+    ConfigProviderInterface
 {
 
     public function getAutoloaderConfig() 
@@ -21,4 +23,9 @@ class Module implements
             ), 
         ); 
     }
+
+    public function getConfig()
+    {
+        return include __DIR__ . '/config/module.config.php';
+    }
 }
diff --git a/module/Galerie/config/module.config.php b/module/Galerie/config/module.config.php
new file mode 100644 (file)
index 0000000..6c50559
--- /dev/null
@@ -0,0 +1,15 @@
+<?php
+
+return array(
+    'controllers' => array(
+        'invokables' => array(
+            'Galerie\Controller\Index' =>
+                'Galerie\Controller\IndexController'
+        ),
+    ),
+    'view_manager' => array(
+        'template_path_stack' => array(
+            'galerie' => __DIR__ . '/../view',
+        ),
+    ),
+);