diff --git a/typo3/sysext/extbase/Classes/Scheduler/TaskExecutor.php b/typo3/sysext/extbase/Classes/Scheduler/TaskExecutor.php index 7627e52e26ba7ebcbbb51ec60497d7ce99d65fb0..e6651bda6740be2588656bc0d331dc110a59fd18 100644 --- a/typo3/sysext/extbase/Classes/Scheduler/TaskExecutor.php +++ b/typo3/sysext/extbase/Classes/Scheduler/TaskExecutor.php @@ -69,11 +69,9 @@ class TaskExecutor implements \TYPO3\CMS\Core\SingletonInterface { protected $configurationManager; /** - * Initializes Request, Response and Dispatcher + * Initialize Dispatcher */ public function initializeObject() { - $this->request = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Mvc\\Cli\\Request'); - $this->response = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Mvc\\Cli\\Response'); $this->dispatcher = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Mvc\\Dispatcher'); } @@ -84,6 +82,9 @@ class TaskExecutor implements \TYPO3\CMS\Core\SingletonInterface { * @return void */ protected function initialize(array $configuration) { + // initialize unconsumed Request and Response + $this->request = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Mvc\\Cli\\Request'); + $this->response = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Mvc\\Cli\\Response'); // initialize configuration $this->configurationManager->setContentObject(\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer')); $this->configurationManager->setConfiguration($configuration);