PHP Класс Sulu\Bundle\ContentBundle\Serializer\Subscriber\LocaleSubscriber

Наследование: implements JMS\Serializer\EventDispatcher\EventSubscriberInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( DocumentInspector $documentInspector, Sulu\Component\DocumentManager\DocumentRegistry $documentRegistry )
getSubscribedEvents ( )
onPostSerialize ( JMS\Serializer\EventDispatcher\ObjectEvent $event ) Adds the concrete languages available and the type (ghost or shadow) of the document to the serialization.

Описание методов

__construct() публичный Метод

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

getSubscribedEvents() публичный статический Метод

public static getSubscribedEvents ( )

onPostSerialize() публичный Метод

Adds the concrete languages available and the type (ghost or shadow) of the document to the serialization.
public onPostSerialize ( JMS\Serializer\EventDispatcher\ObjectEvent $event )
$event JMS\Serializer\EventDispatcher\ObjectEvent