Bug #31179

injectSettings is called more than once for object instantiation

Added by Fernando Arconada about 10 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Must have
Category:
Configuration
Start date:
2011-10-21
Due date:
% Done:

100%

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

Description

When defining injectSettings in a class, one expects it to be called once per instantiation. In fact it is called as often as the class hierarchy is deep, i.e. when StandardController extends AbstractController extends ActionController the injectSettings method of StandardController will be called three times.


Files

injectSettings__call_1.jpg (459 KB) injectSettings__call_1.jpg Karsten Dambekalns, 2011-10-24 21:38
injectSettings__call_2.jpg (450 KB) injectSettings__call_2.jpg Karsten Dambekalns, 2011-10-24 21:38
injectSettings__call_3.png (422 KB) injectSettings__call_3.png Karsten Dambekalns, 2011-10-24 21:38

Also available in: Atom PDF