PHP 클래스 Bolt\EventListener\AccessControlListener

저자: Gawain Lynch ([email protected])
상속: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
파일 보기 프로젝트 열기: bolt/bolt

보호된 프로퍼티들

프로퍼티 타입 설명
$em Bolt\Storage\EntityManagerInterface
$filesystem Bolt\Filesystem\FilesystemInterface
$sessionStorage Bolt\Session\SessionStorage

공개 메소드들

메소드 설명
__construct ( Bolt\Filesystem\FilesystemInterface $filesystem, Bolt\Session\SessionStorage $sessionStorage, Bolt\Storage\EntityManagerInterface $em ) Constructor.
getSubscribedEvents ( )
onStorageEventPostSave ( Bolt\Events\StorageEvent $event ) Remove sessions & authtokens when a user is disabled.
onStorageEventPreDelete ( Bolt\Events\StorageEvent $event ) Remove sessions & authtokens when a user is deleted.

비공개 메소드들

메소드 설명
deleteAuthtokens ( Bolt\Storage\Entity\Users $user ) Delete any save authtokens for a user.
deleteSessions ( Bolt\Storage\Entity\Users $user ) Delete active session files for a user.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Bolt\Filesystem\FilesystemInterface $filesystem, Bolt\Session\SessionStorage $sessionStorage, Bolt\Storage\EntityManagerInterface $em )
$filesystem Bolt\Filesystem\FilesystemInterface
$sessionStorage Bolt\Session\SessionStorage
$em Bolt\Storage\EntityManagerInterface

getSubscribedEvents() 공개 정적인 메소드

public static getSubscribedEvents ( )

onStorageEventPostSave() 공개 메소드

Remove sessions & authtokens when a user is disabled.
public onStorageEventPostSave ( Bolt\Events\StorageEvent $event )
$event Bolt\Events\StorageEvent

onStorageEventPreDelete() 공개 메소드

Remove sessions & authtokens when a user is deleted.
public onStorageEventPreDelete ( Bolt\Events\StorageEvent $event )
$event Bolt\Events\StorageEvent

프로퍼티 상세

$em 보호되어 있는 프로퍼티

protected EntityManagerInterface,Bolt\Storage $em
리턴 Bolt\Storage\EntityManagerInterface

$filesystem 보호되어 있는 프로퍼티

protected FilesystemInterface,Bolt\Filesystem $filesystem
리턴 Bolt\Filesystem\FilesystemInterface

$sessionStorage 보호되어 있는 프로퍼티

protected SessionStorage,Bolt\Session $sessionStorage
리턴 Bolt\Session\SessionStorage