PHP 클래스 Sulu\Bundle\ContentBundle\EventListener\WebspaceSerializeEventSubscriber

상속: implements JMS\Serializer\EventDispatcher\EventSubscriberInterface
파일 보기 프로젝트 열기: sulu/sulu

공개 메소드들

메소드 설명
__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