-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IBX-570: Fixed respecting ezplatform.session.*
parameters
#40
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be risky to hide that configuration behind compiler pass magic. I would rather prefer documenting it properly, making end-developer adjust needed setting per project. Forcing loading of overrides with our custom Kernel is also interesting idea. Unfortunately it probably requires overriding Symfony-provided recipes/files, so back to the same issue as in case of pure framework.yaml
.
My major concern would be that there's currently no way to disable the behavior forced by compiler pass. So any setup requiring different configuration (unable to predict on our end) would stop working.
That said, I see that this is the most "stable" from our POV way to ensure those parameters are set properly for our Product, so +1 for now due to lack of better idea.
Minor remarks:
src/EzPlatformCoreBundle/bundle/DependencyInjection/Compiler/SessionConfigurationPass.php
Outdated
Show resolved
Hide resolved
src/EzPlatformCoreBundle/bundle/DependencyInjection/Compiler/SessionConfigurationPass.php
Outdated
Show resolved
Hide resolved
Side: if we're gonna go with this, |
I agree it would be better to keep "magic" stuff as minimal as possible. Sadly it would greatly complicate installation and upgrade process. Behavior of this compiler pass can be basically disabled by setting both parameters to Both of your suggestions have been implemented in 78055ec |
PR to the recipes: ibexa/recipes#32 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally and on Platform.sh, together with ibexa/recipes#32:
- on Platform.sh sessions are by default stored in redis (depending on available services: either in rediscache or in redissession)
- it's possible to configure the session handler using env variables and the settings are respected
QA Approved
2.3
This fixes IBX-570 where
ezplatform.session.*
parameters are not respected because ourframework
configration inezplatform.yaml
file is overwritten byframework.yaml
. Since we can't really modifyframework.yaml
as it comes from Symfony, I just reconfigure session handler in compiler pass. Default behavior (=usingframework.yaml
configuration) can be still achieved by settingezplatform.session.*
params tonull
.Here is the second PR which removes obsolete configuration from
ezplatform.yaml
: ibexa/recipes#32TODO:
$ composer fix-cs
).