Feature #1848
ComponentManager->getComponent() throws an exception on trying to retrieve a component of prototype scope
Status: | Closed | Start date: | 2008-10-27 | |
---|---|---|---|---|
Priority: | Must have | Due date: | ||
Assigned To: | Robert Lemke | % Done: | 0% |
|
Category: | Object | |||
Target version: | TYPO3 Flow Base Distribution - 1.0 alpha 1 | |||
PHP Version: | Complexity: | |||
Has patch: |
Description
.
History
#1 Updated by Karsten Dambekalns almost 7 years ago
- Priority changed from Should have to Must have
- Target version set to 1.0 alpha 1
#2 Updated by Robert Lemke over 6 years ago
- Status changed from New to Closed
After experimenting with it, I realized that the Component Manager must still be able to return also prototypes, because there simply are situtations in which the client code doesn't know if the target component is prototype or singleton.
Still, getComponent() is rather a low-level infrastructure method than one that should be used everywhere.