Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[FrameworkBundle][Routing] Remove unused logger argument#24739
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
Merged
Uh oh!
There was an error while loading.Please reload this page.
Conversation
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
fabpot approved these changesNov 5, 2017
Member
fabpot left a comment
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.
I'm merging this one but indeed, for 4.1, we should probably pass a Logger so that URLGenerator gets it.@ogizanagi Can you prepare a PR for that?
Member
fabpot commentedNov 5, 2017
Thank you@ogizanagi. |
fabpot added a commit that referenced this pull requestNov 5, 2017
… (ogizanagi)This PR was merged into the 2.7 branch.Discussion----------[FrameworkBundle][Routing] Remove unused logger argument| Q | A| ------------- | ---| Branch? | 2.7| Bug fix? | no| New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files -->| BC breaks? | no| Deprecations? | no <!-- don't forget to update UPGRADE-*.md files -->| Tests pass? | yes| Fixed tickets | N/A <!-- #-prefixed issue number(s), if any -->| License | MIT| Doc PR | N/AThis argument was never used as far as the FrameworkBundle Router was.But actually don't we want to add the `$logger` argument to this class? It's used by the `UrlGenerator` when `router.strict_requirements` is `false` for instance:<img width="1064" alt="screenshot 2017-10-29 a 09 57 31" src="https://user-images.githubusercontent.com/2211145/32142080-482bc64e-bc90-11e7-8382-b78b507bae48.PNG">Commits-------dc9492e [FrameworkBundle][Routing] Remove unused logger argument
ContributorAuthor
ogizanagi commentedNov 5, 2017
Sure. Done in#24826 |
fabpot added a commit that referenced this pull requestDec 1, 2017
…he Router (ogizanagi)This PR was merged into the 4.1-dev branch.Discussion----------[FrameworkBundle] Allow to pass a logger instance to the Router| Q | A| ------------- | ---| Branch? | 4.1 <!-- see comment below -->| Bug fix? | no| New feature? | yes <!-- don't forget to update src/**/CHANGELOG.md files -->| BC breaks? | no| Deprecations? | no <!-- don't forget to update UPGRADE-*.md files -->| Tests pass? | yes| Fixed tickets |#24739 <!-- #-prefixed issue number(s), if any -->| License | MIT| Doc PR | N/AAs explained in#24739, this will allow the `UrlGenerator` to log invalid calls when `router.strict_requirements` is `false` (so instead of throwing):<img width="1064" alt="screenshot 2017-10-29 a 09 57 31" src="https://user-images.githubusercontent.com/2211145/32142080-482bc64e-bc90-11e7-8382-b78b507bae48.PNG">~~This PR must re-introduce the `logger` argument in the definition along with the `monolog.logger` tag removed for cleaning in#24739, once it's merged up into master.~~ DoneCommits-------78f4f88 [FrameworkBundle] Allow to pass a logger instance to the Router
Sign up for freeto 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.
This argument was never used as far as the FrameworkBundle Router was.
But actually don't we want to add the
$loggerargument to this class? It's used by theUrlGeneratorwhenrouter.strict_requirementsisfalsefor instance: