Home
last modified time | relevance | path

Searched refs:serializer (Results 1 – 25 of 55) sorted by relevance

123

/plugin/findologicxmlexport/vendor/jms/serializer/
H A DCHANGELOG.md3 ## [2.2.0](https://github.com/schmittjoh/serializer/tree/2.2.0)
128 …phNavigator using \LogicException without serializer namespace [\#473](https://github.com/schmittj…
290 - @MaxDepth jms/serializer-bundle 2.2 [\#842](https://github.com/schmittjoh/serializer/issues/842)
448 - Doctrine Proxies and serializer.pre\_serialize [\#666](https://github.com/schmittjoh/serializer/i…
479 …an empty datastructure" error when multiple serializer calls [\#319](https://github.com/schmittjoh…
700 - serializer doesn't serialize traits [\#638](https://github.com/schmittjoh/serializer/issues/638)
703 …et default serialization context when building serializer [\#528](https://github.com/schmittjoh/se…
737 - serializer ignores properties added by traits [\#313](https://github.com/schmittjoh/serializer/is…
739 - Using serializer for JSON serialising [\#223](https://github.com/schmittjoh/serializer/issues/223)
761 - serializer.pre\_serialize event only thrown on objects/classes [\#337](https://github.com/schmitt…
[all …]
H A DREADME.md1 # jms/serializer
27 Learn more about the serializer in its [documentation](http://jmsyst.com/libs/serializer).
43 [CHANGELOG]: https://github.com/schmittjoh/serializer/blob/master/CHANGELOG.md
44 [UPGRADING]: https://github.com/schmittjoh/serializer/blob/master/UPGRADING.md
46 [Master image]: https://img.shields.io/travis/schmittjoh/serializer/master.svg?style=flat-square
47 [Master]: https://travis-ci.org/schmittjoh/serializer
49 [Master coverage]: https://scrutinizer-ci.com/g/schmittjoh/serializer/?branch=master
51 [1.x image]: https://img.shields.io/travis/schmittjoh/serializer/1.x.svg?style=flat-square
52 [1.x]: https://github.com/schmittjoh/serializer/tree/1.x
53 …[1.x coverage image]: https://img.shields.io/scrutinizer/coverage/g/schmittjoh/serializer/1.x.svg?…
[all …]
/plugin/findologicxmlexport/vendor/jms/serializer/doc/cookbook/
H A Darrays.rst7 can be challenging. The serializer offers via ``@Type`` annotation different options
22 $serializer->serialize([1, 2]); // [1, 2]
23 $serializer->serialize(['a', 'b']); // ['a', 'b']
24 $serializer->serialize(['c' => 'd']); // {"c" => "d"}
27 …$serializer->serialize([1, 2], SerializationContext::create()->setInitialType('array')); // [1, 2]
28 …$serializer->serialize([1 => 2], SerializationContext::create()->setInitialType('array')); // {"1…
29 …$serializer->serialize(['a', 'b'], SerializationContext::create()->setInitialType('array')); // […
30 …$serializer->serialize(['c' => 'd'], SerializationContext::create()->setInitialType('array')); // …
33 …$serializer->serialize([], SerializationContext::create()->setInitialType('array<integer>')); // …
34 …$serializer->serialize([1, 2], SerializationContext::create()->setInitialType('array<integer>')); …
[all …]
/plugin/findologicxmlexport/vendor/jms/serializer/tests/
H A DSerializerBuilderTest.php30 $serializer = $this->builder->build();
35 ', $serializer->serialize('foo', 'xml'));
46 $serializer = $this->builder->build();
59 $serializer = $this->builder->build();
76 $serializer = $this->builder->build();
141 $serializer = $this->builder->build();
160 $serializer = $this->builder->build();
174 $serializer = $this->builder->build();
188 $serializer = $this->builder->build();
230 $serializer = $this->builder->build();
[all …]
/plugin/elasticsearch/vendor/elasticsearch/elasticsearch/tests/Elasticsearch/Tests/Serializers/
H A DArrayToJSONSerializerTest.php24 $serializer = new ArrayToJSONSerializer();
27 $ret = $serializer->serialize($body);
35 $serializer = new ArrayToJSONSerializer();
38 $ret = $serializer->serialize($body);
45 $serializer = new ArrayToJSONSerializer();
48 $ret = $serializer->deserialize($body, []);
H A DEverythingToJSONSerializerTest.php24 $serializer = new EverythingToJSONSerializer();
27 $ret = $serializer->serialize($body);
35 $serializer = new EverythingToJSONSerializer();
38 $ret = $serializer->serialize($body);
46 $serializer = new EverythingToJSONSerializer();
49 $ret = $serializer->deserialize($body, []);
/plugin/findologicxmlexport/vendor/jms/serializer/src/Twig/
H A DSerializerRuntimeHelper.php18 protected $serializer; variable in JMS\\Serializer\\Twig\\SerializerRuntimeHelper
20 public function __construct(SerializerInterface $serializer) argument
22 $this->serializer = $serializer;
30 return $this->serializer->serialize($object, $type, $context);
H A DSerializerExtension.php20 protected $serializer; variable in JMS\\Serializer\\Twig\\SerializerExtension
32 public function __construct(SerializerInterface $serializer) argument
34 $this->serializer = $serializer;
63 return $this->serializer->serialize($object, $type, $context);
/plugin/findologicxmlexport/vendor/jms/serializer/tests/Serializer/
H A DArrayTest.php16 protected $serializer; variable in JMS\\Serializer\\Tests\\Serializer\\ArrayTest
21 $this->serializer = $builder->build();
32 $result = $this->serializer->toArray($order);
48 $result = $this->serializer->toArray($input);
70 $result = $this->serializer->fromArray($data, 'JMS\Serializer\Tests\Fixtures\Order');
77 $result = $this->serializer->toArray(new Author(null));
87 $result = $this->serializer->toArray($list);
H A DSerializationContextFactoryTest.php23 protected $serializer; variable in JMS\\Serializer\\Tests\\Serializer\\SerializationContextFactoryTest
56 $serializer = $builder->build();
58 $result = $serializer->serialize(['value' => null], 'json');
75 $serializer = $builder->build();
77 $result = $serializer->deserialize('{"value":null}', 'array', 'json');
95 $serializer = $builder->build();
97 $result = $serializer->toArray(['value' => null]);
114 $serializer = $builder->build();
116 $result = $serializer->fromArray(['value' => null], 'array');
H A DXmlSerializationTest.php156 $serializer = $builder->build();
158 $serializer->deserialize('<?xml version="1.0"?>
162 $serializer->deserialize('<?xml version="1.0"?>
279 … $result = $this->serializer->deserialize($xml, ObjectWithXmlKeyValuePairsWithType::class, 'xml');
285 …$result2 = $this->serializer->deserialize($xml2, ObjectWithXmlKeyValuePairsWithType::class, 'xml');
294 …$result = $this->serializer->deserialize($xml, ObjectWithXmlKeyValuePairsWithObjectType::class, 'x…
310 $serializer = $builder->build();
312 …self::assertEquals($this->getContent($key . '_no_cdata'), $serializer->serialize($value, $this->ge…
325 $serializer = $builder->build();
327 …self::assertEquals($this->getContent($key . '_no_cdata'), $serializer->serialize($value, $this->ge…
[all …]
H A DContextTest.php84 $serializer = SerializerBuilder::create()->build();
86 …$serializer->serialize($object, 'json', SerializationContext::create()->addExclusionStrategy($excl…
135 $serializer = SerializerBuilder::create()->build();
136 …$serializer->serialize($object, 'json', SerializationContext::create()->addExclusionStrategy($excl…
175 $serializer = SerializerBuilder::create()->build();
182 $serialized = $serializer->serialize($object, 'json', $context);
192 $serializer = SerializerBuilder::create()->build();
199 $serialized = $serializer->serialize($object, 'json', $context);
H A DBaseSerializationTest.php127 protected $serializer; variable in JMS\\Serializer\\Tests\\Serializer\\BaseSerializationTest
151 $dObj = $this->serializer->deserialize(
202 $dObj = $this->serializer->deserialize(
288 $serializer = $builder->build();
381 $serializer = $builder->build();
434 $this->serializer = $builder->build();
764 $serializer = $builder->build();
776 $serializer = $builder->build();
1162 $this->serializer->serialize(
1207 $serializer = $builder->build();
[all …]
/plugin/elasticsearch/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/
H A DConnectionFactory.php29 private $serializer; variable in Elasticsearch\\Connections\\ConnectionFactory
46 …truct(callable $handler, array $connectionParams, SerializerInterface $serializer, LoggerInterface… argument
52 $this->serializer = $serializer;
61 $this->serializer,
/plugin/elasticsearch/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/
H A DMsearch.php22 * @param SerializerInterface $serializer
24 public function __construct(SerializerInterface $serializer) argument
26 $this->serializer = $serializer;
41 $bulkBody .= $this->serializer->serialize($item)."\n";
H A DMsearchTemplate.php22 * @param SerializerInterface $serializer
24 public function __construct(SerializerInterface $serializer) argument
26 $this->serializer = $serializer;
41 $bulkBody .= $this->serializer->serialize($item)."\n";
H A DBulk.php23 * @param SerializerInterface $serializer
25 public function __construct(SerializerInterface $serializer) argument
27 $this->serializer = $serializer;
41 $this->body .= $this->serializer->serialize($item) . "\n";
H A DBulkEndpointInterface.php23 * @param SerializerInterface $serializer A serializer
25 public function __construct(SerializerInterface $serializer); argument
/plugin/findologicxmlexport/vendor/jms/serializer/doc/
H A Dusage.rst15 $serializer = JMS\Serializer\SerializerBuilder::create()->build();
16 $serializer->serialize($object, 'json');
17 $serializer->serialize($object, 'xml');
34 $serializer = JMS\Serializer\SerializerBuilder::create()->build();
35 $object = $serializer->deserialize($jsonData, 'MyNamespace\MyObject', 'json');
H A Dconfiguration.rst20 This library provides a special builder object which makes constructing serializer instances a bree…
23 $serializer = JMS\Serializer\SerializerBuilder::create()->build();
25 This serializer is fully functional, but you might want to tweak it a bit for example to configure …
29 The serializer collects several metadata about your objects from various sources such as YML, XML, …
30 order to make this process as efficient as possible, it is encourage to let the serializer cache th…
35 $serializer =
48 If you have created custom handlers, you can add them to the serializer easily::
50 $serializer =
71 $serializer =
90 $serializer = JMS\Serializer\SerializerBuilder::create()
[all …]
H A Devent_system.rst4 The serializer dispatches different events during the serialization, and
22 'event' => 'serializer.pre_serialize',
39 $dispatcher->addListener('serializer.pre_serialize',
52 serializer.pre_serialize
60 serializer.post_serialize
68 serializer.pre_deserialize
79 serializer.post_deserialize
/plugin/elasticsearch/vendor/elasticsearch/elasticsearch/tests/Elasticsearch/Tests/Connections/
H A DConnectionTest.php17 private $serializer; variable in Elasticsearch\\Tests\\Connections\\ConnectionTest
23 $this->serializer = $this->createMock(SerializerInterface::class);
38 $this->serializer,
58 $this->serializer,
80 $this->serializer,
/plugin/elasticsearch/vendor/elasticsearch/elasticsearch/docs/
H A Dserializers.asciidoc5 to change the serializer, unless you have special requirements or are
8 The job of the serializer is to encode the outgoing request body and decode
12 The default serializer is the `SmartSerializer`
22 empty array, the serializer manually converts the JSON from an empty array (`[]`)
47 Note that the serializer is configured by specifying a namespace path to the serializer.
57 empty array, the serializer manually converts the JSON from an empty array (`[]`)
76 Note that the serializer is configured by specifying a namespace path to the serializer.
82 If the data provided was an empty array, the serializer manually converts the
104 Note that the serializer is configured by specifying a namespace path to the serializer.
107 If you want to use your own custom serializer, you need to implement the `SerializerInterface` inte…
[all …]
/plugin/elasticsearch/vendor/elasticsearch/elasticsearch/src/Elasticsearch/
H A DClientBuilder.php80 private $serializer = SmartSerializer::class; variable in Elasticsearch\\ClientBuilder
319 public function setSerializer($serializer): ClientBuilder argument
321 $this->parseStringOrObject($serializer, $this->serializer, 'SerializerInterface');
425 if (is_null($this->serializer)) {
426 $this->serializer = new SmartSerializer();
427 } elseif (is_string($this->serializer)) {
428 $this->serializer = new $this->serializer;
464 $serializer = $this->serializer;
466 $this->endpoint = function ($class) use ($serializer) {
469 return new $fullPath($serializer);
[all …]
/plugin/findologicxmlexport/vendor/jms/serializer/tests/Serializer/Doctrine/
H A DIntegrationTest.php38 private $serializer; variable in JMS\\Serializer\\Tests\\Serializer\\Doctrine\\IntegrationTest
43 $json = $this->serializer->serialize($school, 'json');
46 $deserialized = $this->serializer->deserialize($json, Organization::class, 'json');
53 $json = $this->serializer->serialize($student, 'json');
56 $deserialized = $this->serializer->deserialize($json, Person::class, 'json');
80 $json = $this->serializer->serialize($reloadedClass, 'json');
104 $this->serializer = SerializerBuilder::create()

123