diff --git a/guides/plugins/plugins/plugin-fundamentals/add-scheduled-task.md b/guides/plugins/plugins/plugin-fundamentals/add-scheduled-task.md index 9511e15fb..6b6b48a5d 100644 --- a/guides/plugins/plugins/plugin-fundamentals/add-scheduled-task.md +++ b/guides/plugins/plugins/plugin-fundamentals/add-scheduled-task.md @@ -89,6 +89,7 @@ Following will be the respective task handler: namespace Swag\BasicExample\Service\ScheduledTask; use Shopware\Core\Framework\MessageQueue\ScheduledTask\ScheduledTaskHandler; +use Symfony\Component\Messenger\Attribute\AsMessageHandler; #[AsMessageHandler(handles: ExampleTask::class)] class ExampleTaskHandler extends ScheduledTaskHandler