Puli\Repository\FilesystemRepository::get PHP 메소드

get() 공개 메소드

public get ( $path )
    public function get($path)
    {
        $path = $this->sanitizePath($path);
        $filesystemPath = $this->baseDir . $path;
        if (!file_exists($filesystemPath)) {
            throw ResourceNotFoundException::forPath($path);
        }
        return $this->createResource($filesystemPath, $path);
    }