Submit
Path:
~
/
/
usr
/
local
/
psa
/
admin
/
plib
/
vendor
/
jms
/
serializer
/
src
/
Builder
/
File Content:
DocBlockDriverFactory.php
<?php declare(strict_types=1); namespace JMS\Serializer\Builder; use Doctrine\Common\Annotations\Reader; use JMS\Serializer\Metadata\Driver\DocBlockDriver; use JMS\Serializer\Type\ParserInterface; use Metadata\Driver\DriverInterface; class DocBlockDriverFactory implements DriverFactoryInterface { /** * @var DriverFactoryInterface */ private $driverFactoryToDecorate; /** * @var ParserInterface|null */ private $typeParser; public function __construct(DriverFactoryInterface $driverFactoryToDecorate, ?ParserInterface $typeParser = null) { $this->driverFactoryToDecorate = $driverFactoryToDecorate; $this->typeParser = $typeParser; } public function createDriver(array $metadataDirs, ?Reader $annotationReader = null): DriverInterface { $driver = $this->driverFactoryToDecorate->createDriver($metadataDirs, $annotationReader); return new DocBlockDriver($driver, $this->typeParser); } }
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
CallbackDriverFactory.php
997 bytes
0644
DefaultDriverFactory.php
3732 bytes
0644
DocBlockDriverFactory.php
986 bytes
0644
DriverFactoryInterface.php
289 bytes
0644
N4ST4R_ID | Naxtarrr