Puli\Repository\FilesystemRepository::find PHP Method

find() public method

public find ( $query, $language = 'glob' )
    public function find($query, $language = 'glob')
    {
        return $this->iteratorToCollection($this->getGlobIterator($query, $language));
    }

Usage Example

 /**
  * @expectedException \Puli\Repository\Api\UnsupportedLanguageException
  * @expectedExceptionMessage foobar
  */
 public function testFindFailsIfLanguageNotGlob()
 {
     $repo = new FilesystemRepository($this->tempDir);
     $repo->find('/*', 'foobar');
 }