Skip to content

Commit

Permalink
made exclude method accept array of dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
brikou committed Aug 9, 2011
1 parent 83d148b commit 502da7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Finder.php
Expand Up @@ -214,17 +214,17 @@ public function size($size)
/**
* Excludes directories.
*
* @param string $dir A directory to exclude
* @param string|array $dirs A directory path or an array of directories
*
* @return Finder The current Finder instance
*
* @see Symfony\Component\Finder\Iterator\ExcludeDirectoryFilterIterator
*
* @api
*/
public function exclude($dir)
public function exclude($dirs)
{
$this->exclude[] = $dir;
$this->exclude = array_merge($this->exclude, (array) $dirs);

return $this;
}
Expand Down

0 comments on commit 502da7c

Please sign in to comment.