use Symfony\Component\Messenger\MessageBusInterface;
class NotificationService
{
private $bus;
public function __construct(MessageBusInterface $bus)
{
$this->bus = $bus;
}
public function sendNotification(NotificationMessage $message): void
{
$this->bus->dispatch($message);
}
}
use Symfony\Component\Messenger\MessageBusInterface;
class NotificationService
{
private $bus;
public function __construct(MessageBusInterface $bus)
{
$this->bus = $bus;
}
public function sendNotification(NotificationMessage $message): void
{
$this->bus->dispatch($message);
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.