From 831902d8424975431390e3637abb04962d55eeb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roger=20Wo=C5=BAniak?= Date: Mon, 28 Feb 2022 12:45:02 +0100 Subject: [PATCH] Update README.md Hi I want to add little change in your docs because it's important to new users to have clean and easy to use information about implementing package in their apps. --- README.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ea6ab66c..f6178971 100644 --- a/README.md +++ b/README.md @@ -122,10 +122,16 @@ Note that account name is required. * Instantiate a client object - a wrapper around the available calls for the given service. ```php -$blobClient = BlobRestProxy::createBlobService($connectionString); -$tableClient = TableRestProxy::createTableService($connectionString); -$queueClient = QueueRestProxy::createQueueService($connectionString); -$fileClient = FileRestProxy::createFileService($connectionString); +$blobClient = ServicesBuilder::getInstance()->createQueueService($connectionString); +$tableClient = ServicesBuilder::getInstance()->createQueueService($connectionString); +$queueClient = ServicesBuilder::getInstance()->createQueueService($connectionString); +$fileClient = ServicesBuilder::getInstance()->createQueueService($connectionString); +``` + +ServiceBuilder is part of MicrosoftAzure\Storage\Common namespace so you have to add: + +```php +use MicrosoftAzure\Storage\Queue\QueueRestProxy; ``` Or for AAD authentication: @@ -133,6 +139,7 @@ Or for AAD authentication: $blobClient = BlobRestProxy::createBlobServiceWithTokenCredential($token, $connectionString); $queueClient = QueueRestProxy::createQueueServiceWithTokenCredential($token, $connectionString); ``` + Note that Blob and Queue service supports AAD authentication. ### Using Middlewares