8000 Improve the documentation of `Finder::exclude()` by mnapoli · Pull Request #26396 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Improve the documentation of Finder::exclude() #26396

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

Merged
merged 1 commit into from
Mar 4, 2018
Merged

Conversation

mnapoli
Copy link
Contributor
@mnapoli mnapoli commented Mar 4, 2018
Q A
Branch? 2.7
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR

Tried to do this and this didn't work:

$iterator->in($sourcePath)
    ->exclude($sourcePath.'/foo');

I read on http://symfony.com/doc/current/components/finder.html that excluded directories need to be relative:

capture d ecran 2018-03-04 a 16 10 31

@chalasr chalasr added the Finder label Mar 4, 2018
@chalasr chalasr added this to the 2.7 milestone Mar 4, 2018
@fabpot
Copy link
Member
fabpot commented Mar 4, 2018

Thank you @mnapoli.

@fabpot fabpot merged commit cc3084e into symfony:2.7 Mar 4, 2018
fabpot added a commit that referenced this pull request Mar 4, 2018
This PR was merged into the 2.7 branch.

Discussion
----------

Improve the documentation of `Finder::exclude()`

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | no
| New feature?  | no <!-- don't forget to update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- don't forget to update UPGRADE-*.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets |
| License       | MIT
| Doc PR        |

Tried to do this and this didn't work:

```php
$iterator->in($sourcePath)
    ->exclude($sourcePath.'/foo');
```

I read on http://symfony.com/doc/current/components/finder.html that excluded directories need to be relative:

![capture d ecran 2018-03-04 a 16 10 31](https://user-images.githubusercontent.com/720328/36947055-28e47eda-1fc7-11e8-9475-399a3d853169.png)

Commits
-------

cc3084e Improve the documentation of `Finder::exclude()`
@mnapoli mnapoli deleted the patch-1 branch March 4, 2018 19:03
joshtrichards added a commit to joshtrichards/symfony that referenced this pull request Apr 26, 2024
joshtrichards added a commit to joshtrichards/symfony that referenced this pull request Apr 27, 2024
joshtrichards added a commit to joshtrichards/symfony that referenced this pull request Apr 27, 2024
phil-davis pushed a commit to phil-davis/symfony that referenced this pull request Apr 27, 2024
phil-davis pushed a commit to phil-davis/symfony that referenced this pull request Apr 27, 2024
phil-davis pushed a commit to phil-davis/symfony that referenced this pull request Apr 27, 2024
phil-davis pushed a commit to phil-davis/symfony that referenced this pull request Aug 9, 2024
phil-davis pushed a commit to phil-davis/symfony that referenced this pull request Aug 9, 2024
phil-davis pushed a commit to phil-davis/symfony that referenced this pull request Aug 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0