From bff0ce62b3a8f2ca6c224688a1d96a326a3d0bb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Andrieu?= Date: Thu, 25 Aug 2016 13:49:19 +0200 Subject: [PATCH] [Finder] document array use for locations --- components/finder.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/finder.rst b/components/finder.rst index 6d77cdedd98..82b61b7ee91 100644 --- a/components/finder.rst +++ b/components/finder.rst @@ -82,7 +82,8 @@ directory to use for the search:: Search in several locations by chaining calls to :method:`Symfony\\Component\\Finder\\Finder::in`:: - $finder->files()->in(__DIR__)->in('/elsewhere'); + $finder->files()->in(array(__DIR__, '/elsewhere')); + $finder->in(__DIR__)->in('/elsewhere'); Use wildcard characters to search in the directories matching a pattern::