On Saturday 12 November 2011 13:30:46 Dennis Winter wrote: > I assume that this error occurs in the getConfig() method of your > Module.php file. The solution is: return new > Zend\Config\Config(include(__DIR__.'/configs/module.config.php')); > > I recently stumbled upon this one.. So maybe Rob should fix this in his > tutorial!
On 2 november the zf2 library changed to return arrays and Traversable instances as well. You do not need to return a Zend\Config\Config anymore, but arrays (as the ZendSkeletonApplication uses) are also fine now. This rather means the library included in the app is outdated and should be updated to the latest version. If you have a cloned ZendSkeletonApplication running with zf2 as submodule, just do this: cd library/ZendFramework && git pull origin master This will make your modules work again. This was the commit with the change: https://github.com/zendframework/zf2/commit/837e347bd432561f05ae7142c5142591950ab1f0#library/Zend/Module/Manager.php -- Jurian Sluiman -- List: [email protected] Info: http://framework.zend.com/archives Unsubscribe: [email protected]
