diff --git a/Classes/Controller/TaskController.php b/Classes/Controller/TaskController.php index 90fdd7b..f924a04 100644 --- a/Classes/Controller/TaskController.php +++ b/Classes/Controller/TaskController.php @@ -128,7 +128,7 @@ public function initializeAction(): void * @return ResponseInterface * @throws NoSuchArgumentException */ - public function listAction(int $currentPage = 1, Demand $demand = null): ResponseInterface + public function listAction(int $currentPage = 1, ?Demand $demand = null): ResponseInterface { if(is_null($demand)){ $tasks = $this->taskRepository->findAll(); diff --git a/Classes/Exception/StopRunException.php b/Classes/Exception/StopRunException.php index 397737f..a3be7f4 100644 --- a/Classes/Exception/StopRunException.php +++ b/Classes/Exception/StopRunException.php @@ -12,7 +12,7 @@ class StopRunException extends Exception */ protected $taskname; - public function __construct(string $taskname, $message = "", $code = 0, Throwable $previous = null) + public function __construct(string $taskname, $message = "", $code = 0, ?Throwable $previous = null) { $this->taskname = $taskname; parent::__construct($message, $code, $previous); diff --git a/Classes/Widget/Provider/AbstractTaskqueueProvider.php b/Classes/Widget/Provider/AbstractTaskqueueProvider.php index 05965ea..14ada41 100644 --- a/Classes/Widget/Provider/AbstractTaskqueueProvider.php +++ b/Classes/Widget/Provider/AbstractTaskqueueProvider.php @@ -50,14 +50,6 @@ public function prepareData(): void { } - /** - * - */ - protected function prepareChartData(): void - { - $this->chartData = $this->getChartData(); - } - /** * @return array */ diff --git a/Documentation/Developer/Index.rst b/Documentation/Developer/Index.rst index b15a6c1..097748d 100644 --- a/Documentation/Developer/Index.rst +++ b/Documentation/Developer/Index.rst @@ -242,7 +242,7 @@ StopRunException: */ protected $taskname; - public function __construct($message = "", $code = 0, Throwable $previous = null, string $taskname) + public function __construct($message = "", $code = 0, ?Throwable $previous = null, string $taskname) { $this->taskname = $taskname; parent::__construct($message, $code, $previous); diff --git a/ext_tables.php b/ext_tables.php index 3c7ffd8..de3ff1e 100644 --- a/ext_tables.php +++ b/ext_tables.php @@ -2,27 +2,3 @@ if (!defined('TYPO3')) { die('Access denied.'); } -(function () { - if (TYPO3 === 'BE') { - - /** - * Registers a Backend Module - */ - \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule( - 'Taskqueue', - 'tools', // Make module a submodule of 'tools' - 'taskqueue', // Submodule key - '', // Position - [ - \Undkonsorten\Taskqueue\Controller\TaskController::class => 'list, show, delete, run, deleteFinished, deleteFailed, reactivate, search, searchUid, searchResult', - - ], - [ - 'access' => 'user,group', - 'icon' => 'EXT:taskqueue/Resources/Public/Icons/Extension.svg', - 'labels' => 'LLL:EXT:taskqueue/Resources/Private/Language/locallang_taskqueue.xlf', - ] - ); - } - -})();