You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
When using PHP files to configure the Framework Bundle, the configuration "framework.session.handler_id" cannot be set to null to use the system's session handler, because the auto-generated class var/cache/{env}/Symfony/Framework/Session/SessionConfig.php class has a check :
if (null !== $this->handlerId) {
$output['handler_id'] = $this->handlerId;
}
in the method toArray that prevents this valid value from being applied in FrameworkExtension.php (which then falls back to the native file handler). Using the following YAML file next to the PHP one fixes the issue :
Possible Solution
No idea how to resolve this as I can't even find where the auto-generated classes are created, and my guess would be it's quite generic.
Additional context
None.
The text was updated successfully, but these errors were encountered:
Symfony version(s) affected: 5.3.6
Description
When using PHP files to configure the Framework Bundle, the configuration "framework.session.handler_id" cannot be set to
null
to use the system's session handler, because the auto-generated classvar/cache/{env}/Symfony/Framework/Session/SessionConfig.php
class has a check :in the method
toArray
that prevents this valid value from being applied inFrameworkExtension.php
(which then falls back to the native file handler). Using the following YAML file next to the PHP one fixes the issue :How to reproduce
Have a PHP file :
Check the session's handler : it's native_file.
Possible Solution
No idea how to resolve this as I can't even find where the auto-generated classes are created, and my guess would be it's quite generic.
Additional context
None.
The text was updated successfully, but these errors were encountered: