Свойство | Type | Description | |
---|---|---|---|
$em | Bolt\Storage\EntityManagerInterface | ||
$filesystem | Bolt\Filesystem\FilesystemInterface | ||
$sessionStorage | Bolt\Session\SessionStorage |
Méthode | Description | |
---|---|---|
__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. |
Méthode | Description | |
---|---|---|
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 | ||
Résultat | Bolt\Storage\EntityManagerInterface |
protected FilesystemInterface,Bolt\Filesystem $filesystem | ||
Résultat | Bolt\Filesystem\FilesystemInterface |