Issues

ZF2-204: Zend\Module\Listener\ListenerOptions fails with passing object of type Zend\Config\Config

Issue Type: Improvement Created: 2012-03-08T12:08:39.000+0000 Last Updated: 2012-03-08T17:59:32.000+0000 Status: Resolved Fix version(s): Reporter: Dewald Botha (dewald_botha) Assignee: Evan Coury (evan.pro) Tags: - Zend\ModuleManager

Related issues: Attachments:

Description

When creating a Zend\Module\Listener\ListenerOptions object by passing a Zend\Config\Config object with listener_options via the constructor, the ListenerOptions parent class (Zend/Stdlib/Options) uses the magic in the setFromArray function to call setModulePaths, which currently only accepts variables of type array, which causes an exception.

Perhaps doing an is_array or instanceof Traversable would fix this issue?

Comments

Posted by Evan Coury (evan.pro) on 2012-03-08T17:57:06.000+0000

This is a Zend\Module thing.

Posted by Evan Coury (evan.pro) on 2012-03-08T17:57:46.000+0000

Fixed with PR-905.

https://github.com/zendframework/zf2/pull/905

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts