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 : 3.14.152.212
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp-test /
vendor /
endroid /
qr-code /
src /
Delete
Unzip
Name
Size
Permission
Date
Action
Exception
[ DIR ]
drwxr-xr-x
2020-11-27 14:30
Factory
[ DIR ]
drwxr-xr-x
2020-11-27 14:30
Writer
[ DIR ]
drwxr-xr-x
2020-11-27 14:30
ErrorCorrectionLevel.php
888
B
-rw-r--r--
2020-11-27 14:30
LabelAlignment.php
503
B
-rw-r--r--
2020-11-27 14:30
QrCode.php
11.94
KB
-rw-r--r--
2020-11-27 14:30
QrCodeInterface.php
1.38
KB
-rw-r--r--
2020-11-27 14:30
WriterRegistry.php
2.23
KB
-rw-r--r--
2020-11-27 14:30
WriterRegistryInterface.php
594
B
-rw-r--r--
2020-11-27 14:30
Save
Rename
<?php declare(strict_types=1); /* * (c) Jeroen van den Enden <info@endroid.nl> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Endroid\QrCode; use Endroid\QrCode\Exception\InvalidWriterException; use Endroid\QrCode\Writer\BinaryWriter; use Endroid\QrCode\Writer\DebugWriter; use Endroid\QrCode\Writer\EpsWriter; use Endroid\QrCode\Writer\FpdfWriter; use Endroid\QrCode\Writer\PngWriter; use Endroid\QrCode\Writer\SvgWriter; use Endroid\QrCode\Writer\WriterInterface; class WriterRegistry implements WriterRegistryInterface { /** @var WriterInterface[] */ private $writers = []; /** @var WriterInterface|null */ private $defaultWriter; public function loadDefaultWriters(): void { if (count($this->writers) > 0) { return; } $this->addWriters([ new BinaryWriter(), new DebugWriter(), new EpsWriter(), new PngWriter(), new SvgWriter(), new FpdfWriter(), ]); $this->setDefaultWriter('png'); } public function addWriters(iterable $writers): void { foreach ($writers as $writer) { $this->addWriter($writer); } } public function addWriter(WriterInterface $writer): void { $this->writers[$writer->getName()] = $writer; } public function getWriter(string $name): WriterInterface { $this->assertValidWriter($name); return $this->writers[$name]; } public function getDefaultWriter(): WriterInterface { if ($this->defaultWriter instanceof WriterInterface) { return $this->defaultWriter; } throw new InvalidWriterException('Please set the default writer via the second argument of addWriter'); } public function setDefaultWriter(string $name): void { $this->defaultWriter = $this->writers[$name]; } public function getWriters(): array { return $this->writers; } private function assertValidWriter(string $name): void { if (!isset($this->writers[$name])) { throw new InvalidWriterException('Invalid writer "'.$name.'"'); } } }