Bug #11039

Static object container injects properties to result of factory object

Added by Christopher Hlubek almost 11 years ago. Updated over 9 years ago.

Status:
Needs Feedback
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-11-24
Due date:
% Done:

0%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

Description

If a factoryObjectName is set for an object, the dependencies of the default implementation are injected to the result of the factory anyway (the factory already returns a complete object). A workaround is to set the className to an implementation that doesn't have dependencies.

If a factoryObjectName is configured, there should be no further injection on the result because the type is unknown beforehand.

#2

Updated by Christian Müller over 9 years ago

  • Status changed from New to Needs Feedback
  • Has patch set to No

Christopher, do you think this is still valid, I did not do an in-deep debugging but looking at current master code, I cannot see that this still happens. If not the ticket should be closed.

Also available in: Atom PDF