switch addTask parameters order
This commit is contained in:
parent
a487821d1a
commit
a003fff81b
|
@ -24,7 +24,7 @@ class TaskInitEvent extends Event
|
|||
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] = [
|
||||
'label' => $label,
|
||||
|
|
|
@ -22,7 +22,7 @@ class CacheCleanTaskEventSubscriber extends TaskEventSubscriber
|
|||
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue