Кто-нибудь удобен с пучком Lexik?
Я создал подписчика, основанного на аутентификации, но когда я вхожу в систему, он не проходит через мое событие, и я не понимаю, почему. providers:
# used to reload user from session & other features (e.g. switch_user)
app_user_provider:
entity:
class: App\Entity\User
property: email
firewalls:
api:
pattern: ^/api
stateless: true
entry_point: jwt
json_login:
check_path: /api/login # or, if you have defined a route for your login path, the route name you used
success_handler: lexik_jwt_authentication.handler.authentication_success
# success_handler: custom_auth_success_handler
failure_handler: lexik_jwt_authentication.handler.authentication_failure
jwt: ~
refresh_jwt:
check_path: /api/token/refresh # or, you may use the `api_refresh_token` route name
# or if you have more than one user provider
# provider: user_provider_name
logout:
path: api_token_invalidate
< /code>
route.yaml: < /p>
api_login_check:
path: /api/login
< /code>
абонент < /p>
Подробнее здесь: https://stackoverflow.com/questions/797 ... wont-trigg