-
Notifications
You must be signed in to change notification settings - Fork 149
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
Fix usage of session env variables and move some over to use env() #308
Merged
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
# This file contains defaults for optional parameters, which you can override in parameters.yml | ||
parameters: | ||
locale_fallback: en | ||
ezplatform.session.handler_id: session.handler.native_file | ||
ezplatform.session.save_path: '%kernel.project_dir%/var/sessions/%kernel.environment%' | ||
|
||
# A secret key that's used to generate certain security-related tokens | ||
secret: '%env(SYMFONY_SECRET)%' | ||
|
@@ -45,6 +43,14 @@ parameters: | |
# using EzSystemsPlatformHttpCacheBundle (default as of v1.12) which by design expires affected cache on changes | ||
httpcache_default_ttl: '%env(HTTPCACHE_DEFAULT_TTL)%' | ||
|
||
# Session save path as used by symfony session handlers (eg. used for dsn with redis) | ||
session.save_path: '%env(SESSION_SAVE_PATH)%' | ||
|
||
# Recommendation Bundle params | ||
ez_recommendation.default.yoochoose.customer_id: '%env(RECOMMENDATIONS_CUSTOMER_ID)%' | ||
ez_recommendation.default.yoochoose.license_key: '%env(RECOMMENDATIONS_LICENSE_KEY)%' | ||
ez_recommendation.default.server_uri: '%env(PUBLIC_SERVER_URI)%' | ||
|
||
# Fallback values for when environment variables do not exist | ||
|
||
env(MAILER_HOST): 127.0.0.1 | ||
|
@@ -66,19 +72,32 @@ parameters: | |
|
||
env(HTTPCACHE_DEFAULT_TTL): 86400 | ||
|
||
env(SESSION_SAVE_PATH): '%kernel.project_dir%/var/sessions/%kernel.environment%' | ||
|
||
env(RECOMMENDATIONS_CUSTOMER_ID): ~ | ||
env(RECOMMENDATIONS_LICENSE_KEY): ~ | ||
env(PUBLIC_SERVER_URI): ~ | ||
|
||
|
||
# Compile time handlers | ||
## These are defined at compile time, and hence can't be set at runtime using env() | ||
## app/config/env/generic.php takes care about letting you set them by env variables | ||
|
||
## Log type is one of "stream", "error_log" or other types supported by monolog | ||
# env: LOG_TYPE | ||
log_type: stream | ||
|
||
## Mail transport used by SwiftMailer | ||
# env: MAILER_TRANSPORT | ||
mailer_transport: smtp | ||
|
||
# Purge type used by HttpCache system ("local", "varnish"/"http", and on ee also "fastly") | ||
## Purge type used by HttpCache system ("local", "varnish"/"http", and on ee also "fastly") | ||
# env: HTTPCACHE_PURGE_TYPE | ||
purge_type: local | ||
|
||
## Session handler, by default set to file based in order to be able to use %session.save_path% | ||
# evn: SESSION_HANDLER_ID | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. typo: # env |
||
session.handler_id: session.handler.native_file | ||
|
||
# Admin siteaccess group name | ||
admin_group_name: admin_group |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Isn't this a BC break? I had
ezplatform.session.save_path
overridden on my project and this change broke my installation.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.
ezplatform.session.save_path
was afaik introduced here and has not been made part of any release yet:fc0e356
So it's maybe just because you use 2.2-dev? (we don't have BC policy for that) Or was it somewhere else before also?
However there is a BC break here on
ezplatform.session.handler_id
, which has been around across several branches for quite a while. So the renaming here should maybe anyway be renamed back to also avoid your issue.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.
Maybe you are right and I did it between those two changes. If this wasn't released yet I think we are ok with the
ezplatform.session.save_path
.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.
yeah, but I changed them to:
session.handler_id
session.save_path
to be somewhat more consistent with other params.
However change on first param change is BC break as it's been around since 2.1.0 and 1.13.1.
So ok for you if I change it back to the following before 2.2.2?
ezplatform.session.handler_id
ezplatform.session.save_path
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.
Yes, works for me.
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.
Fixed in 8b3d4e0, looks ok to you? If so I'll merge up to the other repos
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.
Looks ok, thanks.