Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
Restore SessionListener class for backward compatibility with Silex#22171
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
SessionListener and TestSessionListener are extended outside of Symfonyin Silex. These classes cannot be renamed.
0fc60f4 to857db92Comparenicolas-grekas commentedMar 27, 2017
Looking at the failure, the core issue is: |
nicolas-grekas commentedMar 28, 2017
I'm going to take over this one. To me, we just need to remove |
GromNaN commentedMar 28, 2017 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Removing the
|
…*SessionListener (nicolas-grekas)This PR was merged into the 3.3-dev branch.Discussion----------[HttpKernel] Dont implement ServiceSubscriberInterface on *SessionListener| Q | A| ------------- | ---| Branch? | master| Bug fix? | yes| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets |#22171,silexphp/Silex#1496| License | MIT| Doc PR | -Implementing `ServiceSubscriberInterface` creates a dep on the DI component, which Silex can't afford. Let's revert that part.@GromNaN can you please confirm this fixes your issue?Commits-------7cd90f5 [HttpKernel] Dont implement ServiceSubscriberInterface on *SessionListener
Uh oh!
There was an error while loading.Please reload this page.
The PR#21625 renamed the classes from
Symfony\Component\HttpKernel\EventListener:...\SessionListenerto...\AbstractSessionListener...\TestSessionListenerto...\AbstractTestSessionListenerThis isbreaking the Silex class that extends it.
To keep the backward compatibility, abstract classes are renamed to their original names and subclasses using container injection are prefixed by
ContainerAware.Also added some tests.