Bug #60

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

Added by Robert Lemke about 8 years ago. Updated almost 5 years ago.

Status:Closed Start date:
Priority:Should have Due date:
Assigned To:Robert Lemke % Done:

0%

Category:Object
Target version:TYPO3 Flow Base Distribution - 0.1
PHP Version: Complexity:
Has patch: Affected Flow version:

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 about 8 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