[BUGFIX] objectManager->create is removed but still in use 15/35015/2
authorWouter Wolters <typo3@wouterwolters.nl>
Wed, 3 Dec 2014 18:46:17 +0000 (19:46 +0100)
committerMarkus Klein <klein.t3@reelworx.at>
Wed, 3 Dec 2014 23:21:28 +0000 (00:21 +0100)
Resolves: #63552
Releases: master, 6.2
Change-Id: I09f238b89c00cd0b6150a0f8763848b9da2f0f99
Reviewed-on: http://review.typo3.org/35015
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Classes/Domain/Repository/BlogRepository.php
typo3/sysext/workspaces/Classes/Controller/PreviewController.php

index 503c051..dc365e0 100644 (file)
@@ -30,11 +30,11 @@ class BlogRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {
         */
        public function initializeObject() {
                /*
-               $querySettings = $this->objectManager->create('\TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings');
+               $querySettings = $this->objectManager->get('\TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings');
                $querySettings->setRespectStoragePage(FALSE);
                $this->setDefaultQuerySettings($querySettings);
                 */
        }
 
 }
-?>
\ No newline at end of file
+?>
index 6d0d4e4..72a246d 100644 (file)
@@ -108,7 +108,7 @@ class PreviewController extends \TYPO3\CMS\Workspaces\Controller\AbstractControl
                        }
                }
                /** @var $uriBuilder \TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder */
-               $uriBuilder = $this->objectManager->create('TYPO3\\CMS\\Extbase\\Mvc\\Web\\Routing\\UriBuilder');
+               $uriBuilder = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Mvc\\Web\\Routing\\UriBuilder');
                $wsSettingsPath = GeneralUtility::getIndpEnv('TYPO3_SITE_URL') . 'typo3/';
                $wsSettingsUri = $uriBuilder->uriFor('singleIndex', array(), 'TYPO3\\CMS\\Workspaces\\Controller\\ReviewController', 'workspaces', 'web_workspacesworkspaces');
                $wsSettingsParams = '&tx_workspaces_web_workspacesworkspaces[controller]=Review';