Task #1846

Rename getComponent() to create() in component factory

Added by Karsten Dambekalns almost 7 years ago. Updated almost 5 years ago.

Status:Resolved Start date:2008-10-27
Priority:Must have Due date:
Assigned To:Robert Lemke % Done:

100%

Category:Object
Target version:TYPO3 Flow Base Distribution - 1.0 alpha 1
Sprint: Has patch:
PHP Version: Complexity:

Description

.

Associated revisions

Revision c89382bd
Added by Robert Lemke over 6 years ago

  • FLOW3: (Component) Renamed the method Component::Factory->getComponent() to Component::Factory->create(). Resolves #1846
  • FLOW3: (Component) Component::Factory->create() will now throw an exception on trying to create a component of scope != prototype
  • FLOW3: (Component) The Component::Manager->getComponent() method can still be used as a last resort to retrieve components of any scope. However dependency injection for singletons and the component factory for prototype should always be the first choice!

Refactored all packages of the TYPO3 distribution to match the above changes.

Note: The test "F3::TYPO3CR::NodeTest::setPropertySetsValue" currently fails on my machine with the following message:

Error in setPropertySetsValue with data set #34 Detail
TYPO3CR/Classes/F3_TYPO3CR_Node.php:577
Unable to convert value of type string to Name: Namespace prefix is invalid

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

  • % Done changed from 0 to 50

#3 Updated by Robert Lemke over 6 years ago

  • Status changed from New to Resolved
  • % Done changed from 50 to 100

Applied in changeset r1422.

Also available in: Atom PDF