Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
vNext
=====

* (impprovement) Display class name of wrapped Task when running `sf debug:scheduler`


3.4.1
=====

Expand Down
8 changes: 7 additions & 1 deletion src/Task/DispatchAfterRunTask/DispatchAfterRunTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* redispatches the given task.
*/
#[AsMessage(transport: TransportsHelper::INTERNAL_TRANSPORT_NAME)]
readonly class DispatchAfterRunTask extends Task implements TaskManagerInternalTask
readonly class DispatchAfterRunTask extends Task implements TaskManagerInternalTask, \Stringable
{
public function __construct (
public Task $task,
Expand All @@ -35,4 +35,10 @@ public function getMetaData () : TaskMetaData
\sprintf("Redispatch task '%s' after the current run", $this->task->getMetaData()->label),
);
}

#[\Override]
public function __toString () : string
{
return $this->task::class;
}
}
Loading