Puli\Repository\AbstractJsonRepository::find PHP Method

find() public method

public find ( $query, $language = 'glob' )
    public function find($query, $language = 'glob')
    {
        if (null === $this->json) {
            $this->load();
        }
        $this->failUnlessGlob($language);
        $query = $this->sanitizePath($query);
        $results = $this->createResources($this->getReferencesForGlob($query));
        ksort($results);
        return new ArrayResourceCollection(array_values($results));
    }