PHP Класс Sulu\Bundle\ContentBundle\EventListener\WebspaceSerializeEventSubscriber

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

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

Метод Описание
__construct ( Sulu\Component\Webspace\Manager\WebspaceManagerInterface $webspaceManager, Sulu\Component\Webspace\Url\WebspaceUrlProviderInterface $webspaceUrlProvider, $environment )
getSubscribedEvents ( )
onPostSerialize ( JMS\Serializer\EventDispatcher\ObjectEvent $event )

Приватные методы

Метод Описание
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.

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

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

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 getSubscribedEvents ( )

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

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