switch addTask parameters order

This commit is contained in:
Simon Vieille 2021-05-30 17:56:45 +02:00
parent a487821d1a
commit a003fff81b
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@ class TaskInitEvent extends Event
return $this->tasks; return $this->tasks;
} }
public function addTask(string $task, string $label, string $section): self public function addTask(string $task, string $section, string $label): self
{ {
$this->tasks[$task] = [ $this->tasks[$task] = [
'label' => $label, 'label' => $label,

View file

@ -22,7 +22,7 @@ class CacheCleanTaskEventSubscriber extends TaskEventSubscriber
public function onInit(TaskInitEvent $event) public function onInit(TaskInitEvent $event)
{ {
$event->addTask('cache:clear', 'Clean all cache', '♻️ Cache'); $event->addTask('cache:clear', '♻️ Cache', 'Clean all cache');
} }
public function onRunRequest(TaskRunRequestedEvent $event) public function onRunRequest(TaskRunRequestedEvent $event)