[BUGFIX] objectManager->create is removed but still in use 05/35005/4
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:20:57 +0000 (00:20 +0100)
Resolves: #63552
Releases: master, 6.2
Change-Id: I09f238b89c00cd0b6150a0f8763848b9da2f0f99
Reviewed-on: http://review.typo3.org/35005
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
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 422aff9..4d30b11 100644 (file)
@@ -30,7 +30,7 @@ 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);
                 */
index f5c3231..6c5fd23 100644 (file)
@@ -107,7 +107,7 @@ class PreviewController extends AbstractController {
                        }
                }
                /** @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';