Puli\Repository\Resource\Collection\LazyResourceCollection::__construct PHP Метод

__construct() публичный Метод

Creates a new collection.
public __construct ( Puli\Repository\Api\ResourceRepository $repo, array $paths )
$repo Puli\Repository\Api\ResourceRepository The repository that will be used to load the resources.
$paths array The paths of the resources which will be loaded into the collection.
    public function __construct(ResourceRepository $repo, array $paths)
    {
        $this->resources = $paths;
        $this->repo = $repo;
    }