Updated for ZF changeges
authorEvan Coury <me@evancoury.com>
Tue, 8 Nov 2011 14:11:39 +0000 (07:11 -0700)
committerEvan Coury <me@evancoury.com>
Tue, 8 Nov 2011 14:11:39 +0000 (07:11 -0700)
- Module::getConfig() now returns a simple array, not a config object
- View listener returns a PhpEnvironment\Response (sendable) upon error

modules/Application/Module.php
modules/Application/src/Application/View/Listener.php

index 9dee84c..e37f6f9 100644 (file)
@@ -3,7 +3,6 @@
 namespace Application;
 
 use Zend\Module\Manager,
-    Zend\Config\Config,
     Zend\EventManager\StaticEventManager,
     Zend\Loader\AutoloaderFactory;
 
@@ -35,7 +34,7 @@ class Module
 
     public function getConfig()
     {
-        return new Config(include __DIR__ . '/configs/module.config.php');
+        return include __DIR__ . '/configs/module.config.php';
     }
     
     public function initializeView($e)
index 8625902..8adf746 100644 (file)
@@ -7,7 +7,7 @@ use ArrayAccess,
     Zend\EventManager\EventCollection,
     Zend\EventManager\ListenerAggregate,
     Zend\EventManager\StaticEventCollection,
-    Zend\Http\Response,
+    Zend\Http\PhpEnvironment\Response,
     Zend\Mvc\Application,
     Zend\Mvc\MvcEvent,
     Zend\View\Renderer;