lib/Beberlei/AzureBlobStorage/StorageRegistry.php
public function registerAccount($name, $accountName, $accountKey, $streamName = false)
    {
        if ( isset($this->accounts[$name])) {
            throw new \RuntimeException("An account with name $name is already registered.");
        }

        $this->accounts[$name] = new BlobClient(
            sprintf('https://%s.blob.core.windows.net', $accountName),
            $accountName,
            $accountKey
        );

        if (! $streamName) {
            return;
        }

        $this->accounts[$name]->registerStreamWrapper($streamName);
    }
public function registerAccount($name, $accountName, $accountKey, $streamName = false)
    {
        if ( isset($this->accounts[$name])) {
            throw new \RuntimeException("An account with name $name is already registered.");
        }

        $this->accounts[$name] = new BlobClient(
            sprintf('https://%s.blob.core.windows.net', $accountName),
            $accountName,
            $accountKey
        );

        if (! $streamName) {
            return;
        }

        $this->accounts[$name]->registerStreamWrapper($streamName);
    }
public function registerAccount ( $ name , $ accountName , $ accountKey , $ streamName = false ) { if ( isset ( $ this -> accounts [ $ name ] ) ) { throw new \ RuntimeException ( "An account with name $name is already registered." ) ; } $ this -> accounts [ $ name ] = new BlobClient ( sprintf ( 'https://%s.blob.core.windows.net' , $ accountName ) , $ accountName , $ accountKey ) ; if ( ! $ streamName ) { return ; } $ this -> accounts [ $ name ] -> registerStreamWrapper ( $ streamName ) ; }
Register Account

@param string $name
@param string $accountName
@param string $accountKey
@param string $streamName
@return void
Register Account