2 namespace TYPO3\CMS\Extbase\Scheduler;
57 parent::__construct();
58 $this->objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Object\ObjectManager::class);
59 $this->commandManager = $this->objectManager->get(\TYPO3\CMS\Extbase\Mvc\Cli\CommandManager::class);
60 $this->taskExecutor = $this->objectManager->get(\TYPO3\CMS\Extbase\Scheduler\TaskExecutor::class);
70 $properties = get_object_vars($this);
71 unset($properties[
'commandManager']);
72 unset($properties[
'objectManager']);
73 unset($properties[
'taskExecutor']);
74 return array_keys($properties);
84 $this->objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Object\ObjectManager::class);
85 $this->commandManager = $this->objectManager->get(\TYPO3\CMS\Extbase\Mvc\Cli\CommandManager::class);
86 $this->taskExecutor = $this->objectManager->get(\TYPO3\CMS\Extbase\Scheduler\TaskExecutor::class);
98 $this->taskExecutor->execute($this);
161 if (is_bool($argumentValue)) {
162 $argumentValue = (int)$argumentValue;
164 $this->defaults[$argumentName] = $argumentValue;
175 if (!empty($this->arguments)) {
177 foreach ($this->arguments as $argumentName => $argumentValue) {
178 if ($argumentValue != $this->defaults[$argumentName]) {
179 array_push(
$arguments, $argumentName .
'=' . $argumentValue);
192 \TYPO3\CMS\Core\Utility\GeneralUtility::sysLog($e->getMessage(),
$this->commandIdentifier, \TYPO3\CMS\Core\Utility\GeneralUtility::SYSLOG_SEVERITY_ERROR);