mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-24 00:23:50 +00:00
implements security on recovering password and redis connector
This commit is contained in:
10
Resources/config/services/redis.yml
Normal file
10
Resources/config/services/redis.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
services:
|
||||
Chill\MainBundle\Redis\RedisConnectionFactory:
|
||||
arguments:
|
||||
$parameters: "%chill_main.redis%"
|
||||
tags:
|
||||
- { name: kernel.event_subcriber }
|
||||
|
||||
Chill\MainBundle\Redis\ChillRedis:
|
||||
factory: 'Chill\MainBundle\Redis\RedisConnectionFactory:create'
|
||||
|
@@ -31,4 +31,21 @@ services:
|
||||
$tokenManager: '@Chill\MainBundle\Security\PasswordRecover\TokenManager'
|
||||
$urlGenerator: '@Symfony\Component\Routing\Generator\UrlGeneratorInterface'
|
||||
$mailer: '@Chill\MainBundle\Notification\Mailer'
|
||||
|
||||
|
||||
Chill\MainBundle\Security\PasswordRecover\PasswordRecoverEventSubscriber:
|
||||
arguments:
|
||||
$locker: '@Chill\MainBundle\Security\PasswordRecover\PasswordRecoverLocker'
|
||||
tags:
|
||||
- { name: kernel.event_subscriber }
|
||||
|
||||
Chill\MainBundle\Security\PasswordRecover\PasswordRecoverLocker:
|
||||
arguments:
|
||||
$chillRedis: '@Chill\MainBundle\Redis\ChillRedis'
|
||||
$logger: '@Psr\Log\LoggerInterface'
|
||||
|
||||
Chill\MainBundle\Security\PasswordRecover\PasswordRecoverVoter:
|
||||
arguments:
|
||||
$locker: '@Chill\MainBundle\Security\PasswordRecover\PasswordRecoverLocker'
|
||||
$requestStack: '@Symfony\Component\HttpFoundation\RequestStack'
|
||||
tags:
|
||||
- { name: security.voter }
|
Reference in New Issue
Block a user