Gaufrette\Adapter\AzureBlobStorage::keys PHP Method

keys() public method

public keys ( )
    public function keys()
    {
        $this->init();
        try {
            $blobList = $this->blobProxy->listBlobs($this->containerName);
            return array_map(function ($blob) {
                return $blob->getName();
            }, $blobList->getBlobs());
        } catch (ServiceException $e) {
            $this->failIfContainerNotFound($e, 'retrieve keys');
            $errorCode = $this->getErrorCodeFromServiceException($e);
            throw new \RuntimeException(sprintf('Failed to list keys for the container "%s": %s (%s).', $this->containerName, $e->getErrorText(), $errorCode), $e->getCode());
        }
    }