PHP Class Sulu\Bundle\SecurityBundle\Serializer\Subscriber\SecuritySubscriber

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

Public Methods

Method Description
__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.

Method Details

__construct() public method

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 method

public static getSubscribedEvents ( )

onPostSerialize() public method

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