class JmsSerializer implements SerializerInterface
JMS Serializer.
In order to use this DeSer mechanism you need to register a custom handler at the build time of your Serializer instance. As this cannot be influenced after the building process has finished, you need to do it yourself.
Please have a look at the handler here {@see Elastification\Client\Serializer\JmsSerializer\SourceSubscribingHandler} and please have a look at the test here {see Elastification\Client\Tests\Unit\Serializer\JmsSerializerTest}, esp. the setUp method tells you how to register this handler. You can pass the class to use for _source serialization into the constructor of the handler class.
Constants
SERIALIZER_FORMAT |
|
Methods
__construct(Serializer $jms)
|
||
string |
serialize(mixed $data, array $params = array())
Serializes given data to string |
|
GatewayInterface |
deserialize(string $data, array $params = array())
Deserializes given data to array or object |
|
SerializationContext |
getJmsSerializeContext()
|
|
void |
setJmsSerializeContext(SerializationContext $jmsContext)
|
|
DeserializationContext |
getJmsDeserializeContext()
|
|
void |
setJmsDeserializeContext(DeserializationContext $jmsDeserializeContext)
|
|
string |
getDeserializerClass()
|
|
void |
setDeserializerClass(string $deserializerClass)
|
Details
at line 77
public
__construct(Serializer $jms)
at line 90
public string
serialize(mixed $data, array $params = array())
Serializes given data to string
at line 107
public GatewayInterface
deserialize(string $data, array $params = array())
Deserializes given data to array or object
at line 146
public SerializationContext
getJmsSerializeContext()
at line 157
public void
setJmsSerializeContext(SerializationContext $jmsContext)
at line 166
public DeserializationContext
getJmsDeserializeContext()
at line 177
public void
setJmsDeserializeContext(DeserializationContext $jmsDeserializeContext)
at line 186
public string
getDeserializerClass()
at line 197
public void
setDeserializerClass(string $deserializerClass)