From: Evan Coury Date: Tue, 8 Nov 2011 14:11:39 +0000 (-0700) Subject: Updated for ZF changeges X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;h=4c1704774b146f5827fdf4adcebc7940e9bf07c4;p=zf2.biz%2Fgalerie.git Updated for ZF changeges - Module::getConfig() now returns a simple array, not a config object - View listener returns a PhpEnvironment\Response (sendable) upon error --- diff --git a/modules/Application/Module.php b/modules/Application/Module.php index 9dee84c..e37f6f9 100644 --- a/modules/Application/Module.php +++ b/modules/Application/Module.php @@ -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) diff --git a/modules/Application/src/Application/View/Listener.php b/modules/Application/src/Application/View/Listener.php index 8625902..8adf746 100644 --- a/modules/Application/src/Application/View/Listener.php +++ b/modules/Application/src/Application/View/Listener.php @@ -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;