Classes in the Reflection subpackage should be instantiated via the object framework
E.g. \F3\FLOW3\Reflection\ClassReflection is instantiated throughout FLOW3 with the new operator, but shouldn't.
Updated by Karsten Dambekalns over 11 years ago
- Category set to Reflection
- Status changed from New to Closed
- Assignee set to Karsten Dambekalns
- Target version set to 1.0 alpha 8
No, this is a deliberate decision. The classes in the reflection subpackage are not subject to AOP or Persistence, nor are there any singletons. Thus new is perfectly fine and a lot faster. Plus we need Reflection very early in the bootstrap, thus we'd have an hen-egg problem.