Puli\Repository\AbstractJsonRepository::createResources PHP Method

createResources() private method

The references are expected to be in the format returned by {@link getReferencesForPath()}, {@link getReferencesForGlob()} and {@link getReferencesInDirectory()}. The result contains Puli paths as keys and {@link PuliResource} implementations as values. The order of the results is undefined.
private createResources ( array $references ) : array
$references array The references indexed by Puli paths.
return array
    private function createResources(array $references)
    {
        foreach ($references as $path => $reference) {
            $references[$path] = $this->createResource($path, $reference);
        }
        return $references;
    }