diff --git a/stubs/StubAdapter.php b/stubs/StubAdapter.php index b47c850b..ea423db4 100644 --- a/stubs/StubAdapter.php +++ b/stubs/StubAdapter.php @@ -7,6 +7,7 @@ use Yiisoft\Queue\Adapter\AdapterInterface; use Yiisoft\Queue\Enum\JobStatus; use Yiisoft\Queue\Message\MessageInterface; +use Yiisoft\Queue\QueueInterface; /** * Stub adapter that does nothing. Job status is always "done". @@ -35,4 +36,9 @@ public function withChannel(string $channel): AdapterInterface { return clone $this; } + + public function getChannelName(): string + { + return QueueInterface::DEFAULT_CHANNEL_NAME; + } }