-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaliases.php
More file actions
21 lines (15 loc) · 890 Bytes
/
aliases.php
File metadata and controls
21 lines (15 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
declare(strict_types=1);
use AzureOss\Identity\AccessToken;
use AzureOss\Identity\ClientSecretCredential;
use AzureOss\Identity\TokenCredential;
// Backwards compatibility aliases (moved to azure-oss/identity)
if (! class_exists('AzureOss\\Storage\\Common\\Auth\\AccessToken', false) && class_exists(AccessToken::class)) {
class_alias(AccessToken::class, 'AzureOss\\Storage\\Common\\Auth\\AccessToken');
}
if (! interface_exists('AzureOss\\Storage\\Common\\Auth\\TokenCredential', false) && interface_exists(TokenCredential::class)) {
class_alias(TokenCredential::class, 'AzureOss\\Storage\\Common\\Auth\\TokenCredential');
}
if (! class_exists('AzureOss\\Storage\\Common\\Auth\\ClientSecretCredential', false) && class_exists(ClientSecretCredential::class)) {
class_alias(ClientSecretCredential::class, 'AzureOss\\Storage\\Common\\Auth\\ClientSecretCredential');
}