-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
GH-7007: Synchronized Service alternative, backwards compatible. #7707
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
Closed
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
db4d934
GH-7007: Synchronized Service alternative, backwards compatible.
beberlei 705f0d4
Move RequestStack into HttpKernel as optional dependency. Introduce n…
beberlei 01ac8c9
[GH-7707] Adjusted fragmenting to not use synchronized services.
beberlei ec539ae
[GH-7707] Fix bug with order of RequestFinished event + handling duri…
beberlei 0ef3664
[GH-7707] Added tests for RequestStack and documentation for new clas…
beberlei 778eaea
[GH-7707] Fix typos
beberlei 5d06aff
[GH-7707] Rename RouterListener#setRequest() to RouterListener#popula…
beberlei 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
Move RequestStack into HttpKernel as optional dependency. Introduce n…
…ew REQUEST_FINISHED event that is specfically for cleaning up global+environment state to avoid using RESPONSE event.
- Loading branch information
commit 705f0d4165eb05c5063fc221a34e857f1808c8f8
There are no files selected for viewing
This file contains hidden or 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
7 changes: 7 additions & 0 deletions
7
src/Symfony/Component/HttpKernel/Event/RequestFinishedEvent.php
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
namespace Symfony\Component\HttpKernel\Event; | ||
|
||
class RequestFinishedEvent extends KernelEvent | ||
{ | ||
} |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
|
@@ -102,4 +102,14 @@ final class KernelEvents | |
* @var string | ||
*/ | ||
const TERMINATE = 'kernel.terminate'; | ||
|
||
/** | ||
* The REQUEST_FINISHED event occurs when a response was generated for a request. | ||
* | ||
* This event allows you to reset the global and envioronmental state of | ||
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 envioronmental => environmental |
||
* the application, when it was changed during the request. | ||
* | ||
* @var string | ||
*/ | ||
const REQUEST_FINISHED = 'kernel.request_finished'; | ||
} |
This file contains hidden or 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 hidden or 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.
should accept null by default for BC.