-
-
Notifications
You must be signed in to change notification settings - Fork 447
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 registering PdoSessionHandlerSchemaSubscriber #1623
Merged
ostrolucky
merged 1 commit into
doctrine:2.9.x
from
alli83:doctrine-bundle-update-config-pdo-session-handler-schema-subscriber
Jan 31, 2023
Merged
Fix registering PdoSessionHandlerSchemaSubscriber #1623
ostrolucky
merged 1 commit into
doctrine:2.9.x
from
alli83:doctrine-bundle-update-config-pdo-session-handler-schema-subscriber
Jan 31, 2023
Conversation
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
nicolas-grekas
added a commit
to symfony/symfony
that referenced
this pull request
Jan 29, 2023
…rSchemaSubscriber (alli83) This PR was merged into the 6.3 branch. Discussion ---------- [HttpFoundation] inject SessionHandler in PdoSessionHandlerSchemaSubscriber | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | License | MIT | Doc PR | I'm working on it following the PR #48059. In #48059, it works only if you put the handler explicitly to PdoSessionHandler in the configuration (handler_id) but it stops working if the session is defined by the factory and we can't use it as follow: ```` handler_id: '%env(resolve:DATABASE_URL)%' ````` Linked to DoctrineBundle PR doctrine/DoctrineBundle#1623 Also imho, I think the second argument of configureSchema inPdoSessionHandler should be optional and set to return true if not defined since the function is public eg. one wants to add the table to the Schema. Commits ------- 9aded06 [HttpFoundation] inject SessionHandler in PdoSessionHandlerSchemaSubscriber
symfony-splitter
pushed a commit
to symfony/http-foundation
that referenced
this pull request
Jan 29, 2023
…rSchemaSubscriber (alli83) This PR was merged into the 6.3 branch. Discussion ---------- [HttpFoundation] inject SessionHandler in PdoSessionHandlerSchemaSubscriber | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | License | MIT | Doc PR | I'm working on it following the PR symfony/symfony#48059. In symfony/symfony#48059, it works only if you put the handler explicitly to PdoSessionHandler in the configuration (handler_id) but it stops working if the session is defined by the factory and we can't use it as follow: ```` handler_id: '%env(resolve:DATABASE_URL)%' ````` Linked to DoctrineBundle PR doctrine/DoctrineBundle#1623 Also imho, I think the second argument of configureSchema inPdoSessionHandler should be optional and set to return true if not defined since the function is public eg. one wants to add the table to the Schema. Commits ------- 9aded06c0c [HttpFoundation] inject SessionHandler in PdoSessionHandlerSchemaSubscriber
alli83
force-pushed
the
doctrine-bundle-update-config-pdo-session-handler-schema-subscriber
branch
3 times, most recently
from
January 30, 2023 14:08
04eb966
to
c9962bc
Compare
nicolas-grekas
changed the title
[DoctrineBundle] fix: Tagged_iterator to identify and inject in PdoSessionHandlerSchemaSubscriber
Fix registering PdoSessionHandlerSchemaSubscriber
Jan 31, 2023
nicolas-grekas
force-pushed
the
doctrine-bundle-update-config-pdo-session-handler-schema-subscriber
branch
from
January 31, 2023 17:50
c9962bc
to
a7dc269
Compare
nicolas-grekas
force-pushed
the
doctrine-bundle-update-config-pdo-session-handler-schema-subscriber
branch
from
January 31, 2023 17:52
a7dc269
to
7536dc6
Compare
nicolas-grekas
approved these changes
Jan 31, 2023
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.
Ready on my side (I updated the PR)
If this is a fix, shouldn't it go to 2.8.x? |
It's a fix for #1569. if I'm not wrong it has been merged on 2.9. I let @nicolas-grekas confirm it :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
linked to symfony/symfony#49097