Feature #48

ValueStreamRegistry is a Singleton outside the IoC container

Added by Robert Lemke over 12 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%


Description

In source:/Packages/phpCRJackrabbit/Classes/T3P_phpCRJackrabbit_ValueStream.php#138 there are some static calls to ValueStreamRegistry::getInstance(). These calls probably should go to some class like T3P_PHPCRJackrabbit_ValueStreamRegistry.

Furthermore, it's not such a good solution to implement the Singleton registry (I suppose it is one) on your own, better use the Component Manager for that.

Solution: Create a constructor which injects the ValueStreamRegistry and configure that registry as scope=singleton in the Components.conf.

History

#1 Updated by Robert Lemke almost 12 years ago

  • Status changed from New to Closed
  • Sprint set to wontfix

#2 Updated by Robert Lemke over 11 years ago

  • Target version deleted (1)

Also available in: Atom PDF