Commit 8319aefb authored by Andreas Wolf's avatar Andreas Wolf

[BUGFIX] Scheduler tasks must conform to namespaced interfaces

parent 0c6520a9
......@@ -25,7 +25,7 @@ require_once ExtensionManagementUtility::extPath('ter') . 'class.tx_ter_helper.p
* @package TYPO3
* @subpackage tx_ter
*/
class tx_ter_updateExtensionIndexTask extends tx_scheduler_Task
class tx_ter_updateExtensionIndexTask extends TYPO3\CMS\Scheduler\Task\AbstractTask
{
/**
......
......@@ -22,7 +22,7 @@
* @package TYPO3
* @subpackage tx_ter
*/
class tx_ter_updateExtensionIndexTask_additionalFieldProvider implements tx_scheduler_AdditionalFieldProvider
class tx_ter_updateExtensionIndexTask_additionalFieldProvider implements \TYPO3\CMS\Scheduler\AdditionalFieldProviderInterface
{
/**
......@@ -45,7 +45,7 @@ class tx_ter_updateExtensionIndexTask_additionalFieldProvider implements tx_sche
* @param tx_scheduler_Module Reference to the calling object (Scheduler's BE module)
* @return array Array containg all the information pertaining to the additional fields
*/
public function getAdditionalFields(array &$taskInfo, $task, tx_scheduler_Module $parentObject)
public function getAdditionalFields(array &$taskInfo, $task, \TYPO3\CMS\Scheduler\Controller\SchedulerModuleController $parentObject)
{
// Initialize selected fields
if (empty($taskInfo[$this->fieldName])) {
......@@ -77,7 +77,7 @@ class tx_ter_updateExtensionIndexTask_additionalFieldProvider implements tx_sche
* @param tx_scheduler_Module Reference to the calling object (Scheduler's BE module)
* @return boolean TRUE if validation was ok (or selected class is not relevant), FALSE otherwise
*/
public function validateAdditionalFields(array &$submittedData, tx_scheduler_Module $parentObject)
public function validateAdditionalFields(array &$submittedData, \TYPO3\CMS\Scheduler\Controller\SchedulerModuleController $parentObject)
{
$value = str_replace([',', ' '], '', $submittedData[$this->fieldName]);
......@@ -92,7 +92,7 @@ class tx_ter_updateExtensionIndexTask_additionalFieldProvider implements tx_sche
* @param tx_scheduler_Task Reference to the current task object
* @return void
*/
public function saveAdditionalFields(array $submittedData, tx_scheduler_Task $task)
public function saveAdditionalFields(array $submittedData, \TYPO3\CMS\Scheduler\Task\AbstractTask $task)
{
$task->clearCachePages = $submittedData[$this->fieldName];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment