source: vendor/google/apiclient/src/aliases.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

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