Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add LegacyPdoSessionHandler class #13068

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

Closed

Conversation

jeremylivingston
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? yes
Tests pass? yes
Fixed tickets #12833
License MIT
Doc PR N/A

Fix for #12994 on the 2.7 branch.

The changes made to the PdoSessionHandler in 2.6 introduced a
backwards-compatability break for users upgrading from 2.5. This update
introduces a LegacyPdoSessionHandler class that uses the old service's
functionality.

Users who cannot make schema updates or do not want to lose sessions can
use LegacyPdoSessionHandler until 3.0.

The changes made to the PdoSessionHandler in 2.6 introduced a
backwards-compatability break for users upgrading from 2.5. This update
introduces a LegacyPdoSessionHandler class that uses the old service's
functionality.

Users who cannot make schema updates or do not want to lose sessions can
use LegacyPdoSessionHandler until 3.0.
@kbond
Copy link
Member

kbond commented Dec 22, 2014

Hmm, shouldn't this be added to 2.6 as it fixes a BC break?

@jeremylivingston
Copy link
Contributor Author

@kbond yes, I definitely think this should be added to 2.6 too. @fabpot, what do you think?

@fabpot
Copy link
Member

fabpot commented Dec 22, 2014

Sure thing; it should be merged into 2.6.

@jeremylivingston
Copy link
Contributor Author

@fabpot, do you need me to do anything else or are you able to merge this PR into 2.6 too?

@fabpot
Copy link
Member

fabpot commented Dec 23, 2014

Thank you @jeremylivingston.

@fabpot
Copy link
Member

fabpot commented Dec 23, 2014

@jeremylivingston Merged now in 2.6 and 2.7. Can you submit an additional PR on 2.7 where we trigger a deprecated warning?

@fabpot fabpot closed this in 2e4fcf0 Dec 23, 2014
@jeremylivingston
Copy link
Contributor Author

@fabpot, sure. I have a @deprecated annotation on the class. Is there something you'd like me to do in addition to that?

@fabpot
Copy link
Member

fabpot commented Dec 23, 2014

Yes, as of 2.7, we should also trigger a PHP error. You can see many examples in the 2.7 branch, just have a look for trigger_error calls in the code.

@jeremylivingston
Copy link
Contributor Author

@fabpot Sure thing. I will take a look. Sorry I misunderstood when you originally asked.

@fabpot
Copy link
Member

fabpot commented Dec 23, 2014

@jeremylivingston No worries, I wasn't very clear in my comment.

fabpot added a commit that referenced this pull request Jan 2, 2015
…mylivingston)

This PR was merged into the 2.7 branch.

Discussion
----------

Add deprecation warning to LegacyPdoSessionHandler

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | yes
| Tests pass?   | yes
| Fixed tickets | N/A
| License       | MIT
| Doc PR        | N/A

LegacyPdoSessionHandler has been deprecated in favor of PdoSessionHandler. Trigger an E_USER_DEPRECATED error when the deprecated class is used.

Addresses @fabpot's comment on [#13068](#13068 (comment)).

Commits
-------

3b9c073 Add deprecation warning to LegacyPdoSessionHandler
fabpot added a commit to symfony/http-foundation that referenced this pull request Jan 2, 2015
…mylivingston)

This PR was merged into the 2.7 branch.

Discussion
----------

Add deprecation warning to LegacyPdoSessionHandler

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | yes
| Tests pass?   | yes
| Fixed tickets | N/A
| License       | MIT
| Doc PR        | N/A

LegacyPdoSessionHandler has been deprecated in favor of PdoSessionHandler. Trigger an E_USER_DEPRECATED error when the deprecated class is used.

Addresses @fabpot's comment on [#13068](symfony/symfony#13068 (comment)).

Commits
-------

3b9c073 Add deprecation warning to LegacyPdoSessionHandler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants