ZF2-184: Inexistent injection parameters are ignored

Issue Type: Bug Created: 2012-03-01T08:02:53.000+0000 Last Updated: 2012-10-08T20:15:26.000+0000 Status: Closed Fix version(s): Reporter: Giorgio Sironi (giorgiosironi) Assignee: Ralph Schindler (ralph) Tags: - Zend\Di

Related issues: Attachments:


<pre class="highlight">
return array(
    'di' => array(
        'instance' => array(
            'Zend\Mvc\Controller\ActionController' => array(
                'parameters' => array(
                    'broker'       => 'Zend\Mvc\Controller\PluginBroker',
                    'montypythons' =>  'holygrail'

The 'montypythons' parameter is just ignored. I can imagine many people not being noticed of wrong parameters, that do not correspond to any setter. For example my layout was broken because the configuration was using the old parameter baseTemplate instead of the new layoutTemplate. In my opinion specifying a not existent parameter is like calling an inexistent setter: fatal error. Is this a design choice?


Posted by Frank Br├╝ckner (frosch) on 2012-03-01T11:26:57.000+0000

Code tags added.

Posted by Ralph Schindler (ralph) on 2012-10-08T20:15:26.000+0000

This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit:

Have you found an issue?

See the Overview section for more details.


© 2006-2022 by Zend by Perforce. Made with by awesome contributors.

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