PHP 클래스 Sulu\Bundle\SecurityBundle\Serializer\Subscriber\SecuritySubscriber

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

공개 메소드들

메소드 설명
__construct ( Sulu\Component\Security\Authorization\AccessControl\AccessControlManagerInterface $accessControlManager, Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage = null )
getSubscribedEvents ( )
onPostSerialize ( JMS\Serializer\EventDispatcher\ObjectEvent $event ) Adds the permissions for the current user to the serialization.

메소드 상세

__construct() 공개 메소드

public __construct ( Sulu\Component\Security\Authorization\AccessControl\AccessControlManagerInterface $accessControlManager, Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage = null )
$accessControlManager Sulu\Component\Security\Authorization\AccessControl\AccessControlManagerInterface
$tokenStorage Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface

getSubscribedEvents() 공개 정적인 메소드

public static getSubscribedEvents ( )

onPostSerialize() 공개 메소드

Adds the permissions for the current user to the serialization.
public onPostSerialize ( JMS\Serializer\EventDispatcher\ObjectEvent $event )
$event JMS\Serializer\EventDispatcher\ObjectEvent