[BUGFIX] Use interface in Mapper::injectQueryFactory
authorAlexander Schnitzler <alex.schnitzler@typovision.de>
Fri, 4 Jan 2013 16:25:32 +0000 (17:25 +0100)
committerStefan Froemken <froemken@gmail.com>
Sat, 5 Jan 2013 13:36:36 +0000 (14:36 +0100)
Currently Mapper::injectQueryFactory expects a
concrete implementation of QueryFactory instead
of an descendant of QueryFactoryInterface.

Releases: 6.1
Fixes: #35936
Change-Id: Ie4a0cac10e866d8a41497ca31d915c8b1b2d66df
Reviewed-on: https://review.typo3.org/17369
Reviewed-by: Ralf Merz
Reviewed-by: Wouter Wolters
Reviewed-by: Tymoteusz Motylewski
Tested-by: Tymoteusz Motylewski
Reviewed-by: Stefan Froemken
Tested-by: Stefan Froemken
typo3/sysext/extbase/Classes/Property/Mapper.php

index dffb4ae..ae16888 100644 (file)
@@ -80,7 +80,7 @@ class Mapper implements \TYPO3\CMS\Core\SingletonInterface {
        protected $objectManager;
 
        /**
-        * @var \TYPO3\CMS\Extbase\Persistence\Generic\QueryFactory
+        * @var \TYPO3\CMS\Extbase\Persistence\Generic\QueryFactoryInterface
         */
        protected $queryFactory;
 
@@ -93,10 +93,10 @@ class Mapper implements \TYPO3\CMS\Core\SingletonInterface {
        }
 
        /**
-        * @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;
        }