Свойство | Тип | Описание | |
---|---|---|---|
$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. |
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 |
public onStorageEventPostSave ( Bolt\Events\StorageEvent $event ) | ||
$event | Bolt\Events\StorageEvent |
public onStorageEventPreDelete ( Bolt\Events\StorageEvent $event ) | ||
$event | Bolt\Events\StorageEvent |
protected EntityManagerInterface,Bolt\Storage $em | ||
Результат | Bolt\Storage\EntityManagerInterface |
protected FilesystemInterface,Bolt\Filesystem $filesystem | ||
Результат | Bolt\Filesystem\FilesystemInterface |