PHP Class Sulu\Bundle\ContentBundle\EventListener\TeaserSerializeEventSubscriber

Inheritance: implements JMS\Serializer\EventDispatcher\EventSubscriberInterface
Exibir arquivo Open project: sulu/sulu

Public Methods

Method Description
__construct ( Sulu\Bundle\MediaBundle\Media\Manager\MediaManagerInterface $mediaManager )
getSubscribedEvents ( )
onPostSerialize ( JMS\Serializer\EventDispatcher\ObjectEvent $event ) Add uniqueid and media-data to serialized data.

Method Details

__construct() public method

public __construct ( Sulu\Bundle\MediaBundle\Media\Manager\MediaManagerInterface $mediaManager )
$mediaManager Sulu\Bundle\MediaBundle\Media\Manager\MediaManagerInterface

getSubscribedEvents() public static method

public static getSubscribedEvents ( )

onPostSerialize() public method

Add uniqueid and media-data to serialized data.
public onPostSerialize ( JMS\Serializer\EventDispatcher\ObjectEvent $event )
$event JMS\Serializer\EventDispatcher\ObjectEvent