We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0dcb62 commit 1cd1d0dCopy full SHA for 1cd1d0d
code_samples/background_tasks/src/Dispatcher/SomeClassThatSchedulesExecutionInTheBackground.php
@@ -6,13 +6,10 @@
6
use Symfony\Component\Messenger\Envelope;
7
use Symfony\Component\Messenger\MessageBusInterface;
8
9
-final class SomeClassThatSchedulesExecutionInTheBackground
+final readonly class SomeClassThatSchedulesExecutionInTheBackground
10
{
11
- private MessageBusInterface $bus;
12
-
13
- public function __construct(MessageBusInterface $bus)
+ public function __construct(private MessageBusInterface $bus)
14
15
- $this->bus = $bus;
16
}
17
18
public function schedule(object $message): void
0 commit comments