Skip to content

Commit

Permalink
Add create shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslnewell committed May 26, 2014
1 parent 005f95b commit 5b79d39
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/deit/filesystem/Finder.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ class Finder implements \IteratorAggregate, \Countable {
const TYPE_FILE = 'files';
const TYPE_FOLDER = 'folders';

/**
* Creates a new finder
* @param string $path The path to search
* @return Finder
* @throws
*/
public static function create($path) {
return new self($path);
}

/**
* The path to search in
* @var string
Expand Down Expand Up @@ -199,4 +209,4 @@ public function count() {
}

}


0 comments on commit 5b79d39

Please sign in to comment.