Bug #6323

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

Added by Michael Sauter over 5 years ago. Updated almost 5 years ago.

Status:Closed Start date:2010-02-02
Priority:Should have Due date:
Assigned To:Karsten Dambekalns % Done:

0%

Category:Reflection
Target version:TYPO3 Flow Base Distribution - 1.0 alpha 8
PHP Version: Complexity:
Has patch: Affected Flow version:

Description

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

History

#1 Updated by Karsten Dambekalns over 5 years ago

  • Category set to Reflection
  • Status changed from New to Closed
  • Assigned To 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