Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Validator] Fix TraceableValidator is reset on data collector instantiation#24770

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
fabpot merged 1 commit intosymfony:3.4fromogizanagi:fix/3.4/validator_collector_reset
Oct 31, 2017
Merged

[Validator] Fix TraceableValidator is reset on data collector instantiation#24770

fabpot merged 1 commit intosymfony:3.4fromogizanagi:fix/3.4/validator_collector_reset
Oct 31, 2017

Conversation

@ogizanagi
Copy link
Contributor

@ogizanagiogizanagi commentedOct 31, 2017
edited
Loading

QA
Branch?3.4
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed ticketsN/A
LicenseMIT
Doc PRN/A

Calling reset from the constructor is wrong in this case as it'll reset theTraceableValidator, which means you'll never get collected data on the first request as the collector is instantiated after (on kernel response).

Another option would be to tag thedebug.validator service withkernel.reset and remove the reset call from the collector.

@fabpot
Copy link
Member

Tagging withkernel.reset looks better to me as in "semantically" better.

@ogizanagi
Copy link
ContributorAuthor

Updated

@fabpot
Copy link
Member

Thank you@ogizanagi.

@fabpotfabpot merged commitf5855fb intosymfony:3.4Oct 31, 2017
fabpot added a commit that referenced this pull requestOct 31, 2017
…tor instantiation (ogizanagi)This PR was merged into the 3.4 branch.Discussion----------[Validator] Fix TraceableValidator is reset on data collector instantiation| Q             | A| ------------- | ---| Branch?       | 3.4 <!-- see comment below -->| Bug fix?      | yes| 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/ACalling reset from the constructor is wrong in this case as it'll reset the `TraceableValidator`, which means you'll never get collected data on the first request as the collector is instantiated after (on kernel response).Another option would be to tag the `debug.validator` service with `kernel.reset` and remove the reset call from the collector.Commits-------f5855fb [Validator] Fix TraceableValidator is reset on data collector instantiation
@ogizanagiogizanagi deleted the fix/3.4/validator_collector_reset branchOctober 31, 2017 17:51
This was referencedNov 5, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@ogizanagi@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp