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

[Routing] Ignore hidden directories when loading routes from annotations#21832

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

@jakzal
Copy link
Contributor

QA
Branch?2.7
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#21497
LicenseMIT
Doc PR-

The problem surfaced after implementing#18869. Therefore it doesn't exist on 2.7, but I'd still merge it there to avoid conflicts when merging between branches. Without this fix, the oldest branch the added test will fail is 3.2.

@nicolas-grekas
Copy link
Member

nicolas-grekas commentedMar 2, 2017
edited
Loading

I also think we should really skip them.
On the implementation side, would theFilesystemIterator::SKIP_DOTS flag work?
Note also that this would be consistent with howglob() andFinder work.

@jakzal
Copy link
ContributorAuthor

jakzal commentedMar 2, 2017
edited
Loading

On the implementation side, would the FilesystemIterator::SKIP_DOTS flag work?

Skip dots only skips. and...

Status: Needs Work

Doctrine bridge tests are failing now ;)

Edit: Doctrine bridge tests are failing for a different reason. Looking into it.

nicolas-grekas reacted with thumbs up emoji

return'.' !==$current->getBasename()[0];
}
),
\RecursiveIteratorIterator::LEAVES_ONLY

Choose a reason for hiding this comment

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

you can still addFilesystemIterator::SKIP_DOTS
what aboutFilesystemIterator::FOLLOW_SYMLINKS also?

Choose a reason for hiding this comment

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

on theRecursiveDirectoryIterator of course

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

. and.. are already filtered out by'.' !== $current->getBasename()[0]; :)

Not sure about following symlinks. This is not a problem we're solving atm, so I wouldn't add it until someones comes up with a use case

@jakzal
Copy link
ContributorAuthor

Doctrine annotations problem should be fixed by#21825 and#21826

@jakzaljakzalforce-pushed thefix-annotation-file-loader-with-hidden-files branch 5 times, most recently fromecca8a0 tod749406CompareMarch 2, 2017 14:48
@jakzaljakzalforce-pushed thefix-annotation-file-loader-with-hidden-files branch fromd749406 toce9df02CompareMarch 2, 2017 14:51
Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

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

👍
Status: reviewed

@fabpot
Copy link
Member

Thank you@jakzal.

@fabpotfabpot merged commitce9df02 intosymfony:2.7Mar 2, 2017
fabpot added a commit that referenced this pull requestMar 2, 2017
…om annotations (jakzal)This PR was merged into the 2.7 branch.Discussion----------[Routing] Ignore hidden directories when loading routes from annotations| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#21497| License       | MIT| Doc PR        | -The problem surfaced after implementing#18869. Therefore it doesn't exist on 2.7, but I'd still merge it there to avoid conflicts when merging between branches. Without this fix, the oldest branch the added test will fail is 3.2.Commits-------ce9df02 [Routing] Ignore hidden directories when loading routes from annotations
fabpot added a commit that referenced this pull requestMar 2, 2017
…colas-grekas)This PR was merged into the 3.3-dev branch.Discussion----------[Config] Sort "globbed" paths to make them predictable| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | -Spotted while reviewing#21832ping@jakzal FYINote that glob already sorts its output, and Finder and glob skip dot dirs.Commits-------ea1deff [Config] Sort "globbed" paths to make them predictable
@jakzaljakzal deleted the fix-annotation-file-loader-with-hidden-files branchMarch 2, 2017 16:07
This was referencedMar 6, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@jakzal@nicolas-grekas@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp