Bug #6323

Classes in the Reflection subpackage should be instantiated via the object framework

Added by Michael Sauter over 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Should have
Category:
Reflection
Start date:
2010-02-02
Due date:
% Done:

0%

Estimated time:
PHP Version:
Has patch:
Complexity:

Description

E.g. \F3\FLOW3\Reflection\ClassReflection is instantiated throughout FLOW3 with the new operator, but shouldn't.

#1

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.

Also available in: Atom PDF