-
Notifications
You must be signed in to change notification settings - Fork 3.5k
/
aliases.php
102 lines (97 loc) · 3.05 KB
/
aliases.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?php
if (class_exists('Google_Client', false)) {
// Prevent error with preloading in PHP 7.4
// @see https://github.com/googleapis/google-api-php-client/issues/1976
return;
}
$classMap = [
'Google\\Client' => 'Google_Client',
'Google\\Service' => 'Google_Service',
'Google\\AccessToken\\Revoke' => 'Google_AccessToken_Revoke',
'Google\\AccessToken\\Verify' => 'Google_AccessToken_Verify',
'Google\\Model' => 'Google_Model',
'Google\\Utils\\UriTemplate' => 'Google_Utils_UriTemplate',
'Google\\AuthHandler\\Guzzle6AuthHandler' => 'Google_AuthHandler_Guzzle6AuthHandler',
'Google\\AuthHandler\\Guzzle7AuthHandler' => 'Google_AuthHandler_Guzzle7AuthHandler',
'Google\\AuthHandler\\AuthHandlerFactory' => 'Google_AuthHandler_AuthHandlerFactory',
'Google\\Http\\Batch' => 'Google_Http_Batch',
'Google\\Http\\MediaFileUpload' => 'Google_Http_MediaFileUpload',
'Google\\Http\\REST' => 'Google_Http_REST',
'Google\\Task\\Retryable' => 'Google_Task_Retryable',
'Google\\Task\\Exception' => 'Google_Task_Exception',
'Google\\Task\\Runner' => 'Google_Task_Runner',
'Google\\Collection' => 'Google_Collection',
'Google\\Service\\Exception' => 'Google_Service_Exception',
'Google\\Service\\Resource' => 'Google_Service_Resource',
'Google\\Exception' => 'Google_Exception',
];
foreach ($classMap as $class => $alias) {
class_alias($class, $alias);
}
/**
* This class needs to be defined explicitly as scripts must be recognized by
* the autoloader.
*/
class Google_Task_Composer extends \Google\Task\Composer
{
}
/** @phpstan-ignore-next-line */
if (\false) {
class Google_AccessToken_Revoke extends \Google\AccessToken\Revoke
{
}
class Google_AccessToken_Verify extends \Google\AccessToken\Verify
{
}
class Google_AuthHandler_AuthHandlerFactory extends \Google\AuthHandler\AuthHandlerFactory
{
}
class Google_AuthHandler_Guzzle6AuthHandler extends \Google\AuthHandler\Guzzle6AuthHandler
{
}
class Google_AuthHandler_Guzzle7AuthHandler extends \Google\AuthHandler\Guzzle7AuthHandler
{
}
class Google_Client extends \Google\Client
{
}
class Google_Collection extends \Google\Collection
{
}
class Google_Exception extends \Google\Exception
{
}
class Google_Http_Batch extends \Google\Http\Batch
{
}
class Google_Http_MediaFileUpload extends \Google\Http\MediaFileUpload
{
}
class Google_Http_REST extends \Google\Http\REST
{
}
class Google_Model extends \Google\Model
{
}
class Google_Service extends \Google\Service
{
}
class Google_Service_Exception extends \Google\Service\Exception
{
}
class Google_Service_Resource extends \Google\Service\Resource
{
}
class Google_Task_Exception extends \Google\Task\Exception
{
}
interface Google_Task_Retryable extends \Google\Task\Retryable
{
}
class Google_Task_Runner extends \Google\Task\Runner
{
}
class Google_Utils_UriTemplate extends \Google\Utils\UriTemplate
{
}
}