Pimcore\Model\Asset\WebDAV\File::get PHP Method

get() public method

public get ( ) : mixed | void
return mixed | void
    public function get()
    {
        if ($this->asset->isAllowed("view")) {
            return fopen($this->asset->getFileSystemPath(), "r", false, FileHelper::getContext());
        } else {
            throw new DAV\Exception\Forbidden();
        }
    }