PHP Class Sulu\Bundle\ContentBundle\Serializer\Subscriber\ShadowLocaleSubscriber

Inheritance: implements JMS\Serializer\EventDispatcher\EventSubscriberInterface
Show file Open project: sulu/sulu

Public Methods

Method Description
__construct ( DocumentInspector $documentInspector, Sulu\Component\DocumentManager\DocumentRegistry $documentRegistry )
getSubscribedEvents ( )
onPostSerialize ( JMS\Serializer\EventDispatcher\ObjectEvent $event ) Adds the enabled shadow languages to the serialization.

Method Details

__construct() public method

public __construct ( DocumentInspector $documentInspector, Sulu\Component\DocumentManager\DocumentRegistry $documentRegistry )
$documentInspector Sulu\Bundle\DocumentManagerBundle\Bridge\DocumentInspector
$documentRegistry Sulu\Component\DocumentManager\DocumentRegistry

getSubscribedEvents() public static method

public static getSubscribedEvents ( )

onPostSerialize() public method

Adds the enabled shadow languages to the serialization.
public onPostSerialize ( JMS\Serializer\EventDispatcher\ObjectEvent $event )
$event JMS\Serializer\EventDispatcher\ObjectEvent