Feature #48
ValueStreamRegistry is a Singleton outside the IoC container
Status: | Closed | Start date: | ||
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Karsten Dambekalns | % Done: | 0% |
|
Category: | - | |||
Target version: | - |
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 over 7 years ago
- Status changed from New to Closed
- Sprint set to wontfix
#2 Updated by Robert Lemke about 7 years ago
- Target version deleted (
1)