Skip to content

Commit 876a3ff

Browse files
committed
minor #6917 [Finder] document array use for locations (mickaelandrieu)
This PR was merged into the 2.7 branch. Discussion ---------- [Finder] document array use for locations Hi, This pull request is valid from Symfony 2.7 to 3.2-dev. The function ``Finder::in()`` accepts a string or array of string for look into multiple locations => https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Finder/Finder.php The other way described is valid, but shouldn't be recommended/documented. Mickaël Commits ------- bff0ce6 [Finder] document array use for locations
2 parents 5cf37b7 + bff0ce6 commit 876a3ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/finder.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ directory to use for the search::
8282
Search in several locations by chaining calls to
8383
:method:`Symfony\\Component\\Finder\\Finder::in`::
8484

85-
$finder->files()->in(__DIR__)->in('/elsewhere');
85+
$finder->files()->in(array(__DIR__, '/elsewhere'));
86+
$finder->in(__DIR__)->in('/elsewhere');
8687

8788
Use wildcard characters to search in the directories matching a pattern::
8889

0 commit comments

Comments
 (0)