private function createResources(array $references)
    {
        foreach ($references as $path => $reference) {
            $references[$path] = $this->createResource($path, $reference);
        }

        return $references;
    }
private function createResources(array $references)
    {
        foreach ($references as $path => $reference) {
            $references[$path] = $this->createResource($path, $reference);
        }

        return $references;
    }
private function createResources ( array $ references ) { foreach ( $ references as $ path => $ reference ) { $ references [ $ path ] = $ this -> createResource ( $ path , $ reference ) ; } return $ references ; }
Turns a list of references into a list of resources.

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.

@param string[]|null[] $references The references indexed by Puli paths.

@return array
Turns a list of references into a list of resources .