Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Security] Cannot use env in RememberMe config #36271

Copy link
Copy link
Closed
@zek

Description

@zek
Issue body actions

Symfony version(s) affected: 3.4.39

Description
This is working until today's 3.4.39 update. using env in security.yaml causes this error.

Invalid type for path "security.firewalls.main.remember_me.lifetime". Expected int, but got string.

How to reproduce
inside of security.yaml

lifetime: '%env(int:REMEMBER_ME_COOKIE_LIFETIME)%'

Possible Solution
Remove these lines
https://github.com/symfony/symfony/pull/35910/files#diff-63961cbd5c56cdeb2e94e6024d58327fR148-R149

Additional context
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.