* Cleaned up QOM Factory
authorSebastian Kurfürst <sebastian@typo3.org>
Tue, 2 Nov 2010 09:42:01 +0000 (09:42 +0000)
committerSebastian Kurfürst <sebastian@typo3.org>
Tue, 2 Nov 2010 09:42:01 +0000 (09:42 +0000)
typo3/sysext/extbase/Classes/Persistence/Mapper/DataMapper.php
typo3/sysext/extbase/Classes/Persistence/QOM/QueryObjectModelFactory.php

index 5cd9bd8..80547f6 100644 (file)
@@ -136,7 +136,7 @@ class Tx_Extbase_Persistence_Mapper_DataMapper implements t3lib_Singleton {
         * @param Tx_Extbase_Persistence_QOM_QueryObjectModelFactory $qomFactory
         * @return void
         */
-       public function setQomFactory(Tx_Extbase_Persistence_QOM_QueryObjectModelFactory $qomFactory) {
+       public function injectQomFactory(Tx_Extbase_Persistence_QOM_QueryObjectModelFactory $qomFactory) {
                $this->qomFactory = $qomFactory;
        }
 
index ebc03f7..5c82294 100644 (file)
  * @version $Id$
  * @scope prototype
  */
-class Tx_Extbase_Persistence_QOM_QueryObjectModelFactory implements Tx_Extbase_Persistence_QOM_QueryObjectModelFactoryInterface {
+class Tx_Extbase_Persistence_QOM_QueryObjectModelFactory implements Tx_Extbase_Persistence_QOM_QueryObjectModelFactoryInterface, t3lib_Singleton {
 // SK: Needs to be cleaned up (methods might need to be removed, and comments fixed)
        /**
-        * @var Tx_Extbase_Persistence_Storage_BackendInterface
-        */
-       protected $storageBackend;
-
-       /**
-        * @param Tx_Extbase_Persistence_Storage_BackendInterface $storageBackend
-        */
-       public function injectStorageBackend(Tx_Extbase_Persistence_Storage_BackendInterface $storageBackend) {
-               $this->storageBackend = $storageBackend;
-       }
-
-       /**
         * Selects a subset of the nodes in the repository based on node type.
         *
         * @param string $nodeTypeName the name of the required node type; non-null