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 : 18.188.171.53
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
wb /
vendor /
jms /
serializer /
src /
Builder /
Delete
Unzip
Name
Size
Permission
Date
Action
CallbackDriverFactory.php
785
B
-rw-rw-r--
2022-08-24 15:26
DefaultDriverFactory.php
2.46
KB
-rw-rw-r--
2022-08-24 15:26
DocBlockDriverFactory.php
978
B
-rw-rw-r--
2022-08-24 15:26
DriverFactoryInterface.php
281
B
-rw-rw-r--
2022-08-24 15:26
Save
Rename
<?php declare(strict_types=1); namespace JMS\Serializer\Builder; use Doctrine\Common\Annotations\Reader; use JMS\Serializer\Exception\LogicException; use Metadata\Driver\DriverInterface; final class CallbackDriverFactory implements DriverFactoryInterface { /** * @var callable */ private $callback; public function __construct(callable $callable) { $this->callback = $callable; } public function createDriver(array $metadataDirs, Reader $reader): DriverInterface { $driver = \call_user_func($this->callback, $metadataDirs, $reader); if (!$driver instanceof DriverInterface) { throw new LogicException('The callback must return an instance of DriverInterface.'); } return $driver; } }