[BUGFIX] Use interface in PersistenceManager::injectQueryFactory
authorAlexander Schnitzler <alex.schnitzler@typovision.de>
Fri, 4 Jan 2013 12:58:24 +0000 (13:58 +0100)
committerStefan Froemken <froemken@gmail.com>
Sat, 5 Jan 2013 14:03:11 +0000 (15:03 +0100)
Currently PersistenceManager::injectQueryFactory
expects a concrete implementation of QueryFactory
instead of an descendant of QueryFactoryInterface.

Releases: 6.1
Fixes: #32026
Change-Id: I1f25a4fdf692e144e5b5773ee7d25beca3e44444
Reviewed-on: https://review.typo3.org/17365
Reviewed-by: Mattias Nilsson
Reviewed-by: Wouter Wolters
Reviewed-by: Tymoteusz Motylewski
Tested-by: Tymoteusz Motylewski
Reviewed-by: Stefan Froemken
Tested-by: Stefan Froemken
typo3/sysext/extbase/Classes/Persistence/Generic/PersistenceManager.php

index 86f4ab9..3c7635e 100644 (file)
@@ -132,10 +132,10 @@ class PersistenceManager implements \TYPO3\CMS\Extbase\Persistence\PersistenceMa
        }
 
        /**
-        * @param \TYPO3\CMS\Extbase\Persistence\Generic\QueryFactory $queryFactory
+        * @param \TYPO3\CMS\Extbase\Persistence\Generic\QueryFactoryInterface $queryFactory
         * @return void
         */
-       public function injectQueryFactory(\TYPO3\CMS\Extbase\Persistence\Generic\QueryFactory $queryFactory) {
+       public function injectQueryFactory(\TYPO3\CMS\Extbase\Persistence\Generic\QueryFactoryInterface $queryFactory) {
                $this->queryFactory = $queryFactory;
        }