-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[suggest] Ignore methods without parameters from aware interfaces #4918
Conversation
@tux-rampage the idea seems ok - just wondering why there would be aware interfaces without params, but that's another problem... |
@Ocramius I'm wondering about this, too. But it doesn't bother me much. Some define the getter as well as the setter. This is a design/philosophy discussion, IMHO not worth debating to much about it. We should give ZF2 consumers this flexibility, no matter if it makes sense to a group of people or not. I guess it doesn't hurt anyone. |
* @link http://github.com/zendframework/zf2 for the canonical source repository | ||
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
* @package Zend_Di |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove @Package
@tux-rampage incorporate the feedback, and I'll review for merge. |
Changed count() check as requested by @weierophinney
@weierophinney I changed the code as requested. |
@tux-rampage Because in this context, we could have a situation of testing |
[suggest] Ignore methods without parameters from aware interfaces
…di-fixes [suggest] Ignore methods without parameters from aware interfaces
- EOF markers
Some aware interfaces in ZF2 define setters which do not expect any parameter.
These setters are not thought to be called by the dependency injector.
It doesn't make sense anyway to process interface methods from aware interfaces that doesn't have parameters. Even worse: Di could call a method that it should not invoke.