Submit
Path:
~
/
/
opt
/
psa
/
admin
/
plib
/
modules
/
performance-booster
/
vendor
/
symfony
/
serializer
/
Context
/
File Content:
SerializerContextBuilder.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 PerformanceBooster\Symfony\Component\Serializer\Context; use PerformanceBooster\Symfony\Component\Serializer\Normalizer\DenormalizerInterface; use PerformanceBooster\Symfony\Component\Serializer\Serializer; /** * A helper providing autocompletion for available Serializer options. * * @author Mathias Arlaud <mathias.arlaud@gmail.com> */ final class SerializerContextBuilder implements ContextBuilderInterface { use ContextBuilderTrait; /** * Configures whether an empty array should be transformed to an * object (in JSON: {}) or to a list (in JSON: []). */ public function withEmptyArrayAsObject(?bool $emptyArrayAsObject) : static { return $this->with(Serializer::EMPTY_ARRAY_AS_OBJECT, $emptyArrayAsObject); } public function withCollectDenormalizationErrors(?bool $collectDenormalizationErrors) : static { return $this->with(DenormalizerInterface::COLLECT_DENORMALIZATION_ERRORS, $collectDenormalizationErrors); } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
INFO
Name
Size
Permission
Action
Encoder
---
0755
Normalizer
---
0755
ContextBuilderInterface.php
717 bytes
0644
ContextBuilderTrait.php
1243 bytes
0644
SerializerContextBuilder.php
1236 bytes
0644
N4ST4R_ID | Naxtarrr