PluginProbe ʕ •ᴥ•ʔ
SEOPress – AI SEO Plugin & On-site SEO / 9.3.0.3
SEOPress – AI SEO Plugin & On-site SEO v9.3.0.3
10.0.1 10.0 9.9.2 9.9.1 9.9 9.8.5 9.8.4 9.8.3 9.8.2 9.8.1 trunk 7.0 7.0.1 7.0.2 7.0.3 7.1 7.1.1 7.1.2 7.2 7.3 7.3.1 7.3.2 7.4 7.5 7.5.0.1 7.5.0.2 7.5.0.3 7.5.1 7.5.2 7.5.2.1 7.6 7.6.1 7.7 7.7.1 7.7.2 7.8 7.9 7.9.1 7.9.2 8.0 8.0.1 8.1 8.1.1 8.2 8.3 8.3.1 8.4 8.4.1 8.5 8.5.0.2 8.5.1 8.5.1.1 8.6 8.6.1 8.7 8.7.0.1 8.7.0.2 8.8 8.8.1 8.9 8.9.0.1 8.9.0.2 9.0 9.0.1 9.1 9.2 9.3 9.3.0.1 9.3.0.2 9.3.0.3 9.3.0.4 9.4 9.4.1 9.5 9.6 9.7 9.7.1 9.7.2 9.7.3 9.7.4 9.8
wp-seopress / vendor / google / apiclient-services / autoload.php
wp-seopress / vendor / google / apiclient-services Last commit date
src 7 months ago LICENSE 7 months ago README.md 7 months ago SECURITY.md 7 months ago autoload.php 7 months ago composer.json 7 months ago
autoload.php
37 lines
1 <?php
2
3 // For older (pre-2.7.2) verions of google/apiclient
4 if (
5 file_exists(__DIR__ . '/../apiclient/src/Google/Client.php')
6 && !class_exists('Google_Client', false)
7 ) {
8 require_once(__DIR__ . '/../apiclient/src/Google/Client.php');
9 if (
10 defined('Google_Client::LIBVER')
11 && version_compare(Google_Client::LIBVER, '2.7.2', '<=')
12 ) {
13 $servicesClassMap = [
14 'Google\\Client' => 'Google_Client',
15 'Google\\Service' => 'Google_Service',
16 'Google\\Service\\Resource' => 'Google_Service_Resource',
17 'Google\\Model' => 'Google_Model',
18 'Google\\Collection' => 'Google_Collection',
19 ];
20 foreach ($servicesClassMap as $alias => $class) {
21 class_alias($class, $alias);
22 }
23 }
24 }
25 spl_autoload_register(function ($class) {
26 if (0 === strpos($class, 'Google_Service_')) {
27 // Autoload the new class, which will also create an alias for the
28 // old class by changing underscores to namespaces:
29 // Google_Service_Speech_Resource_Operations
30 // => Google\Service\Speech\Resource\Operations
31 $classExists = class_exists($newClass = str_replace('_', '\\', $class));
32 if ($classExists) {
33 return true;
34 }
35 }
36 }, true, true);
37