getSerializationContext() protected method

Creates serialization context. Can be used to add own groups.
protected getSerializationContext ( ) : JMS\Serializer\SerializationContext
return JMS\Serializer\SerializationContext
Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 protected function getSerializationContext()
 {
     return parent::getSerializationContext()->setGroups(['fullAccount', 'partialContact']);
 }