芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/rentandbuyrealty.com/pay/vendor/jms/serializer/src/Twig/SerializerExtension.php
serializer = $serializer; } /** * @return TwigFilter[] * * @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint */ public function getFilters() { return [ new TwigFilter('serialize', [$this, 'serialize']), ]; } /** * @return TwigFunction[] * * @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint */ public function getFunctions() { return [ new TwigFunction('serialization_context', '\JMS\Serializer\SerializationContext::create'), ]; } public function serialize(object $object, string $type = 'json', ?SerializationContext $context = null): string { return $this->serializer->serialize($object, $type, $context); } }