lib/Beberlei/AzureBlobStorage/BlobClient.php
public function getContainer($containerName = '')
    {
        Assertion::notEmpty($containerName, 'Container name is not specified');
        self::assertValidContainerName($containerName);

        $response = $this->performRequest($containerName, array('restype' => 'container'), 'GET', array(), false, null, self::RESOURCE_CONTAINER, self::PERMISSION_READ);
        if ( ! $response->isSuccessful()) {
            throw new BlobException($this->getErrorMessage($response, 'Resource could not be accessed.'));
        }

        $metadata = $this->parseMetadataHeaders($response->getHeaders());

        return new BlobContainer(
            $containerName,
            $response->getHeader('Etag'),
            $response->getHeader('Last-modified'),
            $metadata
        );
    }
public function getContainer($containerName = '')
    {
        Assertion::notEmpty($containerName, 'Container name is not specified');
        self::assertValidContainerName($containerName);

        $response = $this->performRequest($containerName, array('restype' => 'container'), 'GET', array(), false, null, self::RESOURCE_CONTAINER, self::PERMISSION_READ);
        if ( ! $response->isSuccessful()) {
            throw new BlobException($this->getErrorMessage($response, 'Resource could not be accessed.'));
        }

        $metadata = $this->parseMetadataHeaders($response->getHeaders());

        return new BlobContainer(
            $containerName,
            $response->getHeader('Etag'),
            $response->getHeader('Last-modified'),
            $metadata
        );
    }
public function getContainer ( $ containerName = '' ) { Assertion :: notEmpty ( $ containerName , 'Container name is not specified' ) ; self :: assertValidContainerName ( $ containerName ) ; $ response = $ this -> performRequest ( $ containerName , array ( 'restype' => 'container' ) , 'GET' , array ( ) , false , null , self :: RESOURCE_CONTAINER , self :: PERMISSION_READ ) ; if ( ! $ response -> isSuccessful ( ) ) { throw new BlobException ( $ this -> getErrorMessage ( $ response , 'Resource could not be accessed.' ) ) ; } $ metadata = $ this -> parseMetadataHeaders ( $ response -> getHeaders ( ) ) ; return new BlobContainer ( $ containerName , $ response -> getHeader ( 'Etag' ) , $ response -> getHeader ( 'Last-modified' ) , $ metadata ) ; }
Get container

@param string $containerName  Container name
@return BlobContainer
@throws BlobException
Get container