PHP Class Sulu\Bundle\ContentBundle\EventListener\WebspaceSerializeEventSubscriber

Inheritance: implements JMS\Serializer\EventDispatcher\EventSubscriberInterface
ファイルを表示 Open project: sulu/sulu

Public Methods

Method Description
__construct ( Sulu\Component\Webspace\Manager\WebspaceManagerInterface $webspaceManager, Sulu\Component\Webspace\Url\WebspaceUrlProviderInterface $webspaceUrlProvider, $environment )
getSubscribedEvents ( )
onPostSerialize ( JMS\Serializer\EventDispatcher\ObjectEvent $event )

Private Methods

Method Description
appendCustomUrls ( Webspace $webspace, JMS\Serializer\Context $context, JMS\Serializer\JsonSerializationVisitor $visitor ) Extract custom-url and add them to serialization.
appendPortalInformation ( Webspace $webspace, JMS\Serializer\Context $context, JMS\Serializer\JsonSerializationVisitor $visitor ) Extract portal-information and add them to serialization.
appendUrls ( Webspace $webspace, JMS\Serializer\Context $context, JMS\Serializer\JsonSerializationVisitor $visitor ) Extract urls and add them to serialization.
getCustomUrlsForEnvironment ( Portal $portal, Sulu\Component\Webspace\Environment $environment, JMS\Serializer\Context $context ) : array Returns custom-url data with the connected locales.

Method Details

__construct() public method

public __construct ( Sulu\Component\Webspace\Manager\WebspaceManagerInterface $webspaceManager, Sulu\Component\Webspace\Url\WebspaceUrlProviderInterface $webspaceUrlProvider, $environment )
$webspaceManager Sulu\Component\Webspace\Manager\WebspaceManagerInterface
$webspaceUrlProvider Sulu\Component\Webspace\Url\WebspaceUrlProviderInterface

getSubscribedEvents() public static method

public static getSubscribedEvents ( )

onPostSerialize() public method

public onPostSerialize ( JMS\Serializer\EventDispatcher\ObjectEvent $event )
$event JMS\Serializer\EventDispatcher\ObjectEvent