Gaufrette\Adapter\AzureBlobStorage::read PHP Method

read() public method

public read ( $key )
    public function read($key)
    {
        $this->init();
        try {
            $blob = $this->blobProxy->getBlob($this->containerName, $key);
            return stream_get_contents($blob->getContentStream());
        } catch (ServiceException $e) {
            $this->failIfContainerNotFound($e, sprintf('read key "%s"', $key));
            return false;
        }
    }