X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/blobdiff_plain/b7ed87c2278fc3ea4d18e8aefa4c0ad829165829..6a7369d976274f0868b6aa3217e3fb42eab5e00f:/typo3/sysext/scheduler/Documentation/DevelopersGuide/CreatingTasks/Index.rst diff --git a/typo3/sysext/scheduler/Documentation/DevelopersGuide/CreatingTasks/Index.rst b/typo3/sysext/scheduler/Documentation/DevelopersGuide/CreatingTasks/Index.rst index 707aebb59f3a..c67cc78f90e5 100644 --- a/typo3/sysext/scheduler/Documentation/DevelopersGuide/CreatingTasks/Index.rst +++ b/typo3/sysext/scheduler/Documentation/DevelopersGuide/CreatingTasks/Index.rst @@ -275,11 +275,11 @@ task. Let's look at one of the base classes declaration as an example: :: // Add caching framework garbage collection task - $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['TYPO3\\CMS\\Scheduler\\Task\\CachingFrameworkGarbageCollectionTask'] = array( + $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][\TYPO3\CMS\Scheduler\Task\CachingFrameworkGarbageCollectionTask::class] = array( 'extension' => $_EXTKEY, 'title' => 'LLL:EXT:' . $_EXTKEY . '/locallang.xml:cachingFrameworkGarbageCollection.name', 'description' => 'LLL:EXT:' . $_EXTKEY . '/locallang.xml:cachingFrameworkGarbageCollection.description', - 'additionalFields' => 'TYPO3\\CMS\\Scheduler\\Task\\CachingFrameworkGarbageCollectionAdditionalFieldProvider' + 'additionalFields' => \TYPO3\CMS\Scheduler\Task\CachingFrameworkGarbageCollectionAdditionalFieldProvider::class ); The registration is made in the array @@ -328,7 +328,7 @@ simple as possible. Consider the following: class MyTask extends \TYPO3\CMS\Scheduler\Task\AbstractTask { public function execute() { - $businessLogic = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('Vendor\\Extension\\BusinessLogic'); + $businessLogic = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\Vendor\Extension\BusinessLogic::class); $businessLogic->run(arg1, arg2, …); } }