Feature #319

Support setter injection without configuration through "inject" methods

Added by Robert Lemke about 13 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Should have
Assignee:
Category:
Object
Target version:
-
Start date:
2008-02-18
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
Complexity:

Description

Currently setter injection is only possible via setter methods whose name follows the scheme "setPropertyName". These dependencies need to be configured explicitly in the Components.ini file because autowiring is not possible in this case.

It would be nice if there was (additionally) support for "inject" methods (setter methods with names like "injectPropertyName"). By convention these methods would be recognized as setters for dependencies and could be autowired.

inject* methods should be preferred over set* methods.

#1

Updated by Robert Lemke almost 13 years ago

  • Target version deleted (18)

Also available in: Atom PDF