Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

brikou
Copy link
Contributor

@brikou brikou commented Dec 5, 2013

before

$finder->files()->in([
    'My/First/Directory',
    'My/Second/Directory',
    'My/Third/Directory',
]);

after

$finder->files()->in('My/{First,Second,Third}/Directory');

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets ~
License MIT
Doc PR ~

@cordoval
Copy link
Contributor

cordoval commented Dec 5, 2013

and tests?

@jakzal
Copy link
Contributor

jakzal commented Dec 5, 2013

@brikou could you add some tests? Might be similar to the ones for the GLOB_DIR.

@brikou
Copy link
Contributor Author

brikou commented Dec 5, 2013

@jakzal @cordoval I'll add some test soon and then ping you back 👍

@cordoval
Copy link
Contributor

cordoval commented Dec 5, 2013

if you don't by next week then we will take it on hacking day 👶 sounds like a good test to write

@brikou
Copy link
Contributor Author

brikou commented Dec 14, 2013

@cordoval really great if someone can works on it at the symfonycon...

@jakzal
Copy link
Contributor

jakzal commented Jan 1, 2014

Closing in favor of #9926 which includes a test case and a changelog update.

@jakzal jakzal closed this Jan 1, 2014
@brikou
Copy link
Contributor Author

brikou commented Jan 1, 2014

@jakzal great! Thx

fabpot added a commit that referenced this pull request Jan 2, 2014
…d (jakzal)

This PR was merged into the 2.5-dev branch.

Discussion
----------

[Finder] Added GLOB_BRACE support in Finder::in() method

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #9705
| License       | MIT
| Doc PR        | ~

**before**

```php
$finder->files()->in([
    'My/First/Directory',
    'My/Second/Directory',
    'My/Third/Directory',
]);
```

**after**

```php
$finder->files()->in('My/{First,Second,Third}/Directory');
```

Commits
-------

e2698fc [Finder] Included GLOB_BRACE support in the CHANGELOG.
30814d3 [Finder] Added a test case for the GLOB_BRACE in Finder:in().
da67f5d [Finder] Added GLOB_BRACE support in Finder::in() method
@piotrpasich
Copy link

@brikou I think it might be used with pipes, not commas

$finder->files()->in('My/{First|Second|Third}/Directory');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants