Bug #60

Problems with constructor arguments and DI in non-adviced constructor interceptors

Added by Robert Lemke over 12 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Object
Start date:
Due date:
% Done:

0%

PHP Version:
Has patch:
Complexity:

Description

A constructor argument of a target class will end up correctly in the proxy class (ie. the proxy class builder works). However, the component configuration does not contain that argument but only the componentManager argument which was added by the AOP framework. The result is that autowiring does not work anymore (as the required original argument is not known to the object builder) and the component manager is injected instead of the expected first argument.

History

#1 Updated by Robert Lemke over 12 years ago

  • Status changed from New to Closed
  • Sprint set to fixed
(In r249)
  • Framework: (Utility) Fixed a bug in the Files part: used $this instead of self.
  • Framework: (Component) Improved and properly documented the ManagerAwareAspect
  • Framework: (AOP) Added exposing tests for and fixed problems with constructor arguments and DI in non-adviced constructor interceptors. Fixes #60.

Also available in: Atom PDF