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

[FrameworkBundle] Respect debug mode when warm up annotations#26513

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

Conversation

@Strate
Copy link
Contributor

QA
Branch?3.4
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets
LicenseMIT
Doc PR

Propagate current debug mode to the annotations reader. Without thi, warmup is useless with debug mode, because timetsamps are not written to cache.

* @param bool $debug Run in debug mode
*/
publicfunction__construct(Reader$annotationReader,$phpArrayFile,CacheItemPoolInterface$fallbackPool,$excludeRegexp =null)
publicfunction__construct(Reader$annotationReader,$phpArrayFile,CacheItemPoolInterface$fallbackPool,$excludeRegexp =null,$debug)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

You've added a non-optional argument, whichshould have broken tests. If there are none, can you add one to prevent future regressions? As this argument is non-optional, it would also be a BC break. Can you make this argument optional with a default value to mimic the previous behavior?

Simperfit reacted with thumbs up emoji
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

All done.
Added test for cache warmer for both cases - debug and no debug
Made argument optional

Make new argument for AnnotationsCacheWarmer::__construct optional to prevent BC breakAdd tests
Extracted reader mock to method, made test compatible with old php-unit
@Strate
Copy link
ContributorAuthor

Just pushed fix for old phpunit, but seems it was useless as changes already aproved (travis ran on old code)

@nicolas-grekas
Copy link
Member

Still fails on PHP 5.5, missing "getMock()"

@Strate
Copy link
ContributorAuthor

That's all, travis is happy now.

@fabpot
Copy link
Member

Thank you@Strate.

fabpot added a commit that referenced this pull requestMar 19, 2018
…ons (Strate)This PR was squashed before being merged into the 3.4 branch (closes#26513).Discussion----------[FrameworkBundle] Respect debug mode when warm up annotations| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets || License       | MIT| Doc PR        |Propagate current debug mode to the annotations reader. Without thi, warmup is useless with debug mode, because timetsamps are not written to cache.Commits-------f3ec396 [FrameworkBundle] Respect debug mode when warm up annotations
@fabpotfabpot closed thisMar 19, 2018
This was referencedApr 3, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

+1 more reviewer

@linaorilinaorilinaori requested changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

5 participants

@Strate@nicolas-grekas@fabpot@linaori@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp