AD
Size: a a a
AD
DD
D
D
App\Model\Notification\Entity\Subscriber\SubscriberRepository;
use App\Model\Notification\Entity\Subscriber\Subscriber;
use Symfony\Component\Notifier\Notification\Notification;
use Symfony\Component\Notifier\NotifierInterface;
use Symfony\Component\Notifier\Recipient\Recipient;
use Twig\Environment;
class NotificationHandler implements MessageHandlerInterface
{
private $subscribers;
private $notifier;
private $texter;
public function __construct(SubscriberRepository $subscribers, NotifierInterface $notifier, TexterInterface $texter)
{
$this->subscribers = $subscribers;
$this->notifier = $notifier;
$this->texter = $texter;
}
public function __invoke(NotificationMessage $message)
{
/** @var Subscriber[] $subscribers */ПГ
App\Model\Notification\Entity\Subscriber\SubscriberRepository;
use App\Model\Notification\Entity\Subscriber\Subscriber;
use Symfony\Component\Notifier\Notification\Notification;
use Symfony\Component\Notifier\NotifierInterface;
use Symfony\Component\Notifier\Recipient\Recipient;
use Twig\Environment;
class NotificationHandler implements MessageHandlerInterface
{
private $subscribers;
private $notifier;
private $texter;
public function __construct(SubscriberRepository $subscribers, NotifierInterface $notifier, TexterInterface $texter)
{
$this->subscribers = $subscribers;
$this->notifier = $notifier;
$this->texter = $texter;
}
public function __invoke(NotificationMessage $message)
{
/** @var Subscriber[] $subscribers */VK
D
D
VK
IG
IG
D
IG
D
IG