I have some questions about designing a code framework using Dependency Injection:
FLOW3 or Doctrine uses Annotations to inject class instances to object properties. This is done with Code Reflection... and the performance is baaaaad :D
What do you think about this approach?
class Test extends Injector {
protected $abc = '@Inject:/namespace/classname';
}
The Injector just loop through the class properties and finds if the string begins with @Inject
and create object of given class.
Is it cool or does it suck?