PHP 클래스 Bolt\EventListener\StorageEventListener

상속: implements Symfony\Component\EventDispatcher\EventSubscriberInterface, use trait Bolt\Request\ProfilerAwareTrait
파일 보기 프로젝트 열기: bolt/bolt 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$hashStrength integer
$loggerFlash Bolt\Logger\FlashLoggerInterface
$passwordFactory PasswordLib\Password\Factory
$schemaManager Bolt\Storage\Database\Schema\SchemaManagerInterface
$timedRecord Bolt\Storage\EventProcessor\TimedRecord
$timedRecordsEnabled boolean
$urlGenerator Symfony\Component\Routing\Generator\UrlGeneratorInterface

공개 메소드들

메소드 설명
__construct ( TimedRecord $timedRecord, Bolt\Storage\Database\Schema\SchemaManagerInterface $schemaManager, Symfony\Component\Routing\Generator\UrlGeneratorInterface $urlGenerator, Bolt\Logger\FlashLoggerInterface $loggerFlash, PasswordLib\Password\Factory $passwordFactory, integer $hashStrength, boolean $timedRecordsEnabled ) Constructor.
getSubscribedEvents ( )
onKernelRequest ( GetResponseEvent $event ) Kernel request listener callback.
onPostHydrate ( Bolt\Events\HydrationEvent $event ) Post hydration storage event.
onUserEntityPreSave ( Bolt\Events\StorageEvent $event ) Pre-save storage event for user entities.

보호된 메소드들

메소드 설명
passwordHash ( Bolt\Storage\Entity\Users $usersEntity ) Hash user passwords on save.
schemaCheck ( GetResponseEvent $event ) Trigger database schema checks if required.

비공개 메소드들

메소드 설명
getValidHash ( string $password ) : string Return a valid hash for a password, of if the password is already hashed just return as is.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( TimedRecord $timedRecord, Bolt\Storage\Database\Schema\SchemaManagerInterface $schemaManager, Symfony\Component\Routing\Generator\UrlGeneratorInterface $urlGenerator, Bolt\Logger\FlashLoggerInterface $loggerFlash, PasswordLib\Password\Factory $passwordFactory, integer $hashStrength, boolean $timedRecordsEnabled )
$timedRecord Bolt\Storage\EventProcessor\TimedRecord
$schemaManager Bolt\Storage\Database\Schema\SchemaManagerInterface
$urlGenerator Symfony\Component\Routing\Generator\UrlGeneratorInterface
$loggerFlash Bolt\Logger\FlashLoggerInterface
$passwordFactory PasswordLib\Password\Factory
$hashStrength integer
$timedRecordsEnabled boolean

getSubscribedEvents() 공개 정적인 메소드

public static getSubscribedEvents ( )

onKernelRequest() 공개 메소드

Kernel request listener callback.
public onKernelRequest ( GetResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseEvent

onPostHydrate() 공개 메소드

Post hydration storage event.
public onPostHydrate ( Bolt\Events\HydrationEvent $event )
$event Bolt\Events\HydrationEvent

onUserEntityPreSave() 공개 메소드

Pre-save storage event for user entities.
public onUserEntityPreSave ( Bolt\Events\StorageEvent $event )
$event Bolt\Events\StorageEvent

passwordHash() 보호된 메소드

Hash user passwords on save.
protected passwordHash ( Bolt\Storage\Entity\Users $usersEntity )
$usersEntity Bolt\Storage\Entity\Users

schemaCheck() 보호된 메소드

Trigger database schema checks if required.
protected schemaCheck ( GetResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseEvent

프로퍼티 상세

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

protected int $hashStrength
리턴 integer

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

protected FlashLoggerInterface,Bolt\Logger $loggerFlash
리턴 Bolt\Logger\FlashLoggerInterface

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

protected Factory,PasswordLib\Password $passwordFactory
리턴 PasswordLib\Password\Factory

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

protected SchemaManagerInterface,Bolt\Storage\Database\Schema $schemaManager
리턴 Bolt\Storage\Database\Schema\SchemaManagerInterface

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

protected TimedRecord,Bolt\Storage\EventProcessor $timedRecord
리턴 Bolt\Storage\EventProcessor\TimedRecord

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

protected bool $timedRecordsEnabled
리턴 boolean

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

protected UrlGeneratorInterface,Symfony\Component\Routing\Generator $urlGenerator
리턴 Symfony\Component\Routing\Generator\UrlGeneratorInterface