This commit is contained in:
2026-03-11 15:57:27 +01:00
parent 481271c972
commit b4b460fd21
10775 changed files with 2071579 additions and 26409 deletions

View File

@@ -37,26 +37,81 @@ namespace Composer\Autoload;
*
* @author Fabien Potencier <fabien@symfony.com>
* @author Jordi Boggiano <j.boggiano@seld.be>
* @see http://www.php-fig.org/psr/psr-0/
* @see http://www.php-fig.org/psr/psr-4/
* @see https://www.php-fig.org/psr/psr-0/
* @see https://www.php-fig.org/psr/psr-4/
*/
class ClassLoader
{
/** @var \Closure(string):void */
private static $includeFile;
/** @var string|null */
private $vendorDir;
// PSR-4
/**
* @var array<string, array<string, int>>
*/
private $prefixLengthsPsr4 = array();
/**
* @var array<string, list<string>>
*/
private $prefixDirsPsr4 = array();
/**
* @var list<string>
*/
private $fallbackDirsPsr4 = array();
// PSR-0
/**
* List of PSR-0 prefixes
*
* Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2')))
*
* @var array<string, array<string, list<string>>>
*/
private $prefixesPsr0 = array();
/**
* @var list<string>
*/
private $fallbackDirsPsr0 = array();
/** @var bool */
private $useIncludePath = false;
/**
* @var array<string, string>
*/
private $classMap = array();
/** @var bool */
private $classMapAuthoritative = false;
/**
* @var array<string, bool>
*/
private $missingClasses = array();
/** @var string|null */
private $apcuPrefix;
/**
* @var array<string, self>
*/
private static $registeredLoaders = array();
/**
* @param string|null $vendorDir
*/
public function __construct($vendorDir = null)
{
$this->vendorDir = $vendorDir;
self::initializeIncludeClosure();
}
/**
* @return array<string, list<string>>
*/
public function getPrefixes()
{
if (!empty($this->prefixesPsr0)) {
@@ -66,28 +121,42 @@ class ClassLoader
return array();
}
/**
* @return array<string, list<string>>
*/
public function getPrefixesPsr4()
{
return $this->prefixDirsPsr4;
}
/**
* @return list<string>
*/
public function getFallbackDirs()
{
return $this->fallbackDirsPsr0;
}
/**
* @return list<string>
*/
public function getFallbackDirsPsr4()
{
return $this->fallbackDirsPsr4;
}
/**
* @return array<string, string> Array of classname => path
*/
public function getClassMap()
{
return $this->classMap;
}
/**
* @param array $classMap Class to filename map
* @param array<string, string> $classMap Class to filename map
*
* @return void
*/
public function addClassMap(array $classMap)
{
@@ -102,22 +171,25 @@ class ClassLoader
* Registers a set of PSR-0 directories for a given prefix, either
* appending or prepending to the ones previously set for this prefix.
*
* @param string $prefix The prefix
* @param array|string $paths The PSR-0 root directories
* @param bool $prepend Whether to prepend the directories
* @param string $prefix The prefix
* @param list<string>|string $paths The PSR-0 root directories
* @param bool $prepend Whether to prepend the directories
*
* @return void
*/
public function add($prefix, $paths, $prepend = false)
{
$paths = (array) $paths;
if (!$prefix) {
if ($prepend) {
$this->fallbackDirsPsr0 = array_merge(
(array) $paths,
$paths,
$this->fallbackDirsPsr0
);
} else {
$this->fallbackDirsPsr0 = array_merge(
$this->fallbackDirsPsr0,
(array) $paths
$paths
);
}
@@ -126,19 +198,19 @@ class ClassLoader
$first = $prefix[0];
if (!isset($this->prefixesPsr0[$first][$prefix])) {
$this->prefixesPsr0[$first][$prefix] = (array) $paths;
$this->prefixesPsr0[$first][$prefix] = $paths;
return;
}
if ($prepend) {
$this->prefixesPsr0[$first][$prefix] = array_merge(
(array) $paths,
$paths,
$this->prefixesPsr0[$first][$prefix]
);
} else {
$this->prefixesPsr0[$first][$prefix] = array_merge(
$this->prefixesPsr0[$first][$prefix],
(array) $paths
$paths
);
}
}
@@ -147,25 +219,28 @@ class ClassLoader
* Registers a set of PSR-4 directories for a given namespace, either
* appending or prepending to the ones previously set for this namespace.
*
* @param string $prefix The prefix/namespace, with trailing '\\'
* @param array|string $paths The PSR-4 base directories
* @param bool $prepend Whether to prepend the directories
* @param string $prefix The prefix/namespace, with trailing '\\'
* @param list<string>|string $paths The PSR-4 base directories
* @param bool $prepend Whether to prepend the directories
*
* @throws \InvalidArgumentException
*
* @return void
*/
public function addPsr4($prefix, $paths, $prepend = false)
{
$paths = (array) $paths;
if (!$prefix) {
// Register directories for the root namespace.
if ($prepend) {
$this->fallbackDirsPsr4 = array_merge(
(array) $paths,
$paths,
$this->fallbackDirsPsr4
);
} else {
$this->fallbackDirsPsr4 = array_merge(
$this->fallbackDirsPsr4,
(array) $paths
$paths
);
}
} elseif (!isset($this->prefixDirsPsr4[$prefix])) {
@@ -175,18 +250,18 @@ class ClassLoader
throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
}
$this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
$this->prefixDirsPsr4[$prefix] = (array) $paths;
$this->prefixDirsPsr4[$prefix] = $paths;
} elseif ($prepend) {
// Prepend directories for an already registered namespace.
$this->prefixDirsPsr4[$prefix] = array_merge(
(array) $paths,
$paths,
$this->prefixDirsPsr4[$prefix]
);
} else {
// Append directories for an already registered namespace.
$this->prefixDirsPsr4[$prefix] = array_merge(
$this->prefixDirsPsr4[$prefix],
(array) $paths
$paths
);
}
}
@@ -195,8 +270,10 @@ class ClassLoader
* Registers a set of PSR-0 directories for a given prefix,
* replacing any others previously set for this prefix.
*
* @param string $prefix The prefix
* @param array|string $paths The PSR-0 base directories
* @param string $prefix The prefix
* @param list<string>|string $paths The PSR-0 base directories
*
* @return void
*/
public function set($prefix, $paths)
{
@@ -211,10 +288,12 @@ class ClassLoader
* Registers a set of PSR-4 directories for a given namespace,
* replacing any others previously set for this namespace.
*
* @param string $prefix The prefix/namespace, with trailing '\\'
* @param array|string $paths The PSR-4 base directories
* @param string $prefix The prefix/namespace, with trailing '\\'
* @param list<string>|string $paths The PSR-4 base directories
*
* @throws \InvalidArgumentException
*
* @return void
*/
public function setPsr4($prefix, $paths)
{
@@ -234,6 +313,8 @@ class ClassLoader
* Turns on searching the include path for class files.
*
* @param bool $useIncludePath
*
* @return void
*/
public function setUseIncludePath($useIncludePath)
{
@@ -256,6 +337,8 @@ class ClassLoader
* that have not been registered with the class map.
*
* @param bool $classMapAuthoritative
*
* @return void
*/
public function setClassMapAuthoritative($classMapAuthoritative)
{
@@ -276,6 +359,8 @@ class ClassLoader
* APCu prefix to use to cache found/not-found classes, if the extension is enabled.
*
* @param string|null $apcuPrefix
*
* @return void
*/
public function setApcuPrefix($apcuPrefix)
{
@@ -296,33 +381,55 @@ class ClassLoader
* Registers this instance as an autoloader.
*
* @param bool $prepend Whether to prepend the autoloader or not
*
* @return void
*/
public function register($prepend = false)
{
spl_autoload_register(array($this, 'loadClass'), true, $prepend);
if (null === $this->vendorDir) {
return;
}
if ($prepend) {
self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders;
} else {
unset(self::$registeredLoaders[$this->vendorDir]);
self::$registeredLoaders[$this->vendorDir] = $this;
}
}
/**
* Unregisters this instance as an autoloader.
*
* @return void
*/
public function unregister()
{
spl_autoload_unregister(array($this, 'loadClass'));
if (null !== $this->vendorDir) {
unset(self::$registeredLoaders[$this->vendorDir]);
}
}
/**
* Loads the given class or interface.
*
* @param string $class The name of the class
* @return bool|null True if loaded, null otherwise
* @return true|null True if loaded, null otherwise
*/
public function loadClass($class)
{
if ($file = $this->findFile($class)) {
includeFile($file);
$includeFile = self::$includeFile;
$includeFile($file);
return true;
}
return null;
}
/**
@@ -367,6 +474,21 @@ class ClassLoader
return $file;
}
/**
* Returns the currently registered loaders keyed by their corresponding vendor directories.
*
* @return array<string, self>
*/
public static function getRegisteredLoaders()
{
return self::$registeredLoaders;
}
/**
* @param string $class
* @param string $ext
* @return string|false
*/
private function findFileWithExtension($class, $ext)
{
// PSR-4 lookup
@@ -432,14 +554,26 @@ class ClassLoader
return false;
}
}
/**
* Scope isolated include.
*
* Prevents access to $this/self from included files.
*/
function includeFile($file)
{
include $file;
/**
* @return void
*/
private static function initializeIncludeClosure()
{
if (self::$includeFile !== null) {
return;
}
/**
* Scope isolated include.
*
* Prevents access to $this/self from included files.
*
* @param string $file
* @return void
*/
self::$includeFile = \Closure::bind(static function($file) {
include $file;
}, null, null);
}
}

View File

@@ -26,12 +26,23 @@ use Composer\Semver\VersionParser;
*/
class InstalledVersions
{
/**
* @var string|null if set (by reflection by Composer), this should be set to the path where this class is being copied to
* @internal
*/
private static $selfDir = null;
/**
* @var mixed[]|null
* @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null
*/
private static $installed;
/**
* @var bool
*/
private static $installedIsLocalDir;
/**
* @var bool|null
*/
@@ -98,7 +109,7 @@ class InstalledVersions
{
foreach (self::getInstalled() as $installed) {
if (isset($installed['versions'][$packageName])) {
return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);
return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false;
}
}
@@ -119,7 +130,7 @@ class InstalledVersions
*/
public static function satisfies(VersionParser $parser, $packageName, $constraint)
{
$constraint = $parser->parseConstraints($constraint);
$constraint = $parser->parseConstraints((string) $constraint);
$provided = $parser->parseConstraints(self::getVersionRanges($packageName));
return $provided->matches($constraint);
@@ -309,6 +320,24 @@ class InstalledVersions
{
self::$installed = $data;
self::$installedByVendor = array();
// when using reload, we disable the duplicate protection to ensure that self::$installed data is
// always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not,
// so we have to assume it does not, and that may result in duplicate data being returned when listing
// all installed packages for example
self::$installedIsLocalDir = false;
}
/**
* @return string
*/
private static function getSelfDir()
{
if (self::$selfDir === null) {
self::$selfDir = strtr(__DIR__, '\\', '/');
}
return self::$selfDir;
}
/**
@@ -322,17 +351,27 @@ class InstalledVersions
}
$installed = array();
$copiedLocalDir = false;
if (self::$canGetVendors) {
$selfDir = self::getSelfDir();
foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
$vendorDir = strtr($vendorDir, '\\', '/');
if (isset(self::$installedByVendor[$vendorDir])) {
$installed[] = self::$installedByVendor[$vendorDir];
} elseif (is_file($vendorDir.'/composer/installed.php')) {
$installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php';
if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
self::$installed = $installed[count($installed) - 1];
/** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
$required = require $vendorDir.'/composer/installed.php';
self::$installedByVendor[$vendorDir] = $required;
$installed[] = $required;
if (self::$installed === null && $vendorDir.'/composer' === $selfDir) {
self::$installed = $required;
self::$installedIsLocalDir = true;
}
}
if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) {
$copiedLocalDir = true;
}
}
}
@@ -340,12 +379,17 @@ class InstalledVersions
// only require the installed.php file if this file is loaded from its dumped location,
// and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
if (substr(__DIR__, -8, 1) !== 'C') {
self::$installed = require __DIR__ . '/installed.php';
/** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
$required = require __DIR__ . '/installed.php';
self::$installed = $required;
} else {
self::$installed = array();
}
}
$installed[] = self::$installed;
if (self::$installed !== array() && !$copiedLocalDir) {
$installed[] = self::$installed;
}
return $installed;
}

View File

@@ -2,10 +2,11 @@
// autoload_classmap.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$vendorDir = dirname(__DIR__);
$baseDir = dirname($vendorDir);
return array(
'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
'PLL_AS3CF' => $baseDir . '/integrations/wp-offload-media/as3cf.php',
'PLL_Abstract_Sitemaps' => $baseDir . '/modules/sitemaps/abstract-sitemaps.php',
'PLL_Accept_Language' => $baseDir . '/frontend/accept-language.php',
@@ -43,14 +44,16 @@ return array(
'PLL_Choose_Lang_Domain' => $baseDir . '/frontend/choose-lang-domain.php',
'PLL_Choose_Lang_Url' => $baseDir . '/frontend/choose-lang-url.php',
'PLL_Cookie' => $baseDir . '/include/cookie.php',
'PLL_Db_Tools' => $baseDir . '/include/db-tools.php',
'PLL_Default_Term' => $baseDir . '/include/default-term.php',
'PLL_Domain_Mapping' => $baseDir . '/integrations/domain-mapping/domain-mapping.php',
'PLL_Duplicate_Post' => $baseDir . '/integrations/duplicate-post/duplicate-post.php',
'PLL_Featured_Content' => $baseDir . '/integrations/jetpack/featured-content.php',
'PLL_Filter_REST_Routes' => $baseDir . '/include/filter-rest-routes.php',
'PLL_Filters' => $baseDir . '/include/filters.php',
'PLL_Filters_Links' => $baseDir . '/include/filters-links.php',
'PLL_Filters_Sanitization' => $baseDir . '/include/filters-sanitization.php',
'PLL_Filters_Widgets_Options' => $baseDir . '/include/filters-widgets-options.php',
'PLL_Format_Util' => $baseDir . '/include/format-util.php',
'PLL_Frontend' => $baseDir . '/frontend/frontend.php',
'PLL_Frontend_Auto_Translate' => $baseDir . '/frontend/frontend-auto-translate.php',
'PLL_Frontend_Filters' => $baseDir . '/frontend/frontend-filters.php',
@@ -91,6 +94,7 @@ return array(
'PLL_Settings_Licenses' => $baseDir . '/settings/settings-licenses.php',
'PLL_Settings_Media' => $baseDir . '/settings/settings-media.php',
'PLL_Settings_Module' => $baseDir . '/settings/settings-module.php',
'PLL_Settings_Preview_Machine_Translation' => $baseDir . '/modules/machine-translation/settings-preview-machine-translation.php',
'PLL_Settings_Preview_Share_Slug' => $baseDir . '/modules/share-slug/settings-preview-share-slug.php',
'PLL_Settings_Preview_Translate_Slugs' => $baseDir . '/modules/translate-slugs/settings-preview-translate-slugs.php',
'PLL_Settings_Sync' => $baseDir . '/modules/sync/settings-sync.php',
@@ -108,6 +112,7 @@ return array(
'PLL_Table_Languages' => $baseDir . '/settings/table-languages.php',
'PLL_Table_Settings' => $baseDir . '/settings/table-settings.php',
'PLL_Table_String' => $baseDir . '/settings/table-string.php',
'PLL_Term_Slug' => $baseDir . '/include/term-slug.php',
'PLL_Translatable_Object' => $baseDir . '/include/translatable-object.php',
'PLL_Translatable_Object_With_Types_Interface' => $baseDir . '/include/translatable-object-with-types-interface.php',
'PLL_Translatable_Object_With_Types_Trait' => $baseDir . '/include/translatable-object-with-types-trait.php',
@@ -134,4 +139,34 @@ return array(
'PLL_WordPress_Importer' => $baseDir . '/integrations/wp-importer/wordpress-importer.php',
'PLL_Yarpp' => $baseDir . '/integrations/yarpp/yarpp.php',
'Polylang' => $baseDir . '/include/class-polylang.php',
'WP_Syntex\\Polylang\\Model\\Languages' => $baseDir . '/include/Model/Languages.php',
'WP_Syntex\\Polylang\\Model\\Post_Types' => $baseDir . '/include/Model/Post_Types.php',
'WP_Syntex\\Polylang\\Model\\Taxonomies' => $baseDir . '/include/Model/Taxonomies.php',
'WP_Syntex\\Polylang\\Options\\Abstract_Option' => $baseDir . '/include/Options/Abstract_Option.php',
'WP_Syntex\\Polylang\\Options\\Business\\Abstract_Object_Types' => $baseDir . '/include/Options/Business/Abstract_Object_Types.php',
'WP_Syntex\\Polylang\\Options\\Business\\Browser' => $baseDir . '/include/Options/Business/Browser.php',
'WP_Syntex\\Polylang\\Options\\Business\\Default_Lang' => $baseDir . '/include/Options/Business/Default_Lang.php',
'WP_Syntex\\Polylang\\Options\\Business\\Domains' => $baseDir . '/include/Options/Business/Domains.php',
'WP_Syntex\\Polylang\\Options\\Business\\First_Activation' => $baseDir . '/include/Options/Business/First_Activation.php',
'WP_Syntex\\Polylang\\Options\\Business\\Force_Lang' => $baseDir . '/include/Options/Business/Force_Lang.php',
'WP_Syntex\\Polylang\\Options\\Business\\Hide_Default' => $baseDir . '/include/Options/Business/Hide_Default.php',
'WP_Syntex\\Polylang\\Options\\Business\\Language_Taxonomies' => $baseDir . '/include/Options/Business/Language_Taxonomies.php',
'WP_Syntex\\Polylang\\Options\\Business\\Media_Support' => $baseDir . '/include/Options/Business/Media_Support.php',
'WP_Syntex\\Polylang\\Options\\Business\\Nav_Menus' => $baseDir . '/include/Options/Business/Nav_Menus.php',
'WP_Syntex\\Polylang\\Options\\Business\\Post_Types' => $baseDir . '/include/Options/Business/Post_Types.php',
'WP_Syntex\\Polylang\\Options\\Business\\Previous_Version' => $baseDir . '/include/Options/Business/Previous_Version.php',
'WP_Syntex\\Polylang\\Options\\Business\\Redirect_Lang' => $baseDir . '/include/Options/Business/Redirect_Lang.php',
'WP_Syntex\\Polylang\\Options\\Business\\Rewrite' => $baseDir . '/include/Options/Business/Rewrite.php',
'WP_Syntex\\Polylang\\Options\\Business\\Sync' => $baseDir . '/include/Options/Business/Sync.php',
'WP_Syntex\\Polylang\\Options\\Business\\Taxonomies' => $baseDir . '/include/Options/Business/Taxonomies.php',
'WP_Syntex\\Polylang\\Options\\Business\\Version' => $baseDir . '/include/Options/Business/Version.php',
'WP_Syntex\\Polylang\\Options\\Options' => $baseDir . '/include/Options/Options.php',
'WP_Syntex\\Polylang\\Options\\Primitive\\Abstract_Boolean' => $baseDir . '/include/Options/Primitive/Abstract_Boolean.php',
'WP_Syntex\\Polylang\\Options\\Primitive\\Abstract_List' => $baseDir . '/include/Options/Primitive/Abstract_List.php',
'WP_Syntex\\Polylang\\Options\\Primitive\\Abstract_String' => $baseDir . '/include/Options/Primitive/Abstract_String.php',
'WP_Syntex\\Polylang\\Options\\Registry' => $baseDir . '/include/Options/Registry.php',
'WP_Syntex\\Polylang\\REST\\API' => $baseDir . '/modules/REST/API.php',
'WP_Syntex\\Polylang\\REST\\Abstract_Controller' => $baseDir . '/modules/REST/Abstract_Controller.php',
'WP_Syntex\\Polylang\\REST\\V1\\Languages' => $baseDir . '/modules/REST/V1/Languages.php',
'WP_Syntex\\Polylang\\REST\\V1\\Settings' => $baseDir . '/modules/REST/V1/Settings.php',
);

View File

@@ -2,7 +2,7 @@
// autoload_namespaces.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$vendorDir = dirname(__DIR__);
$baseDir = dirname($vendorDir);
return array(

View File

@@ -2,7 +2,7 @@
// autoload_psr4.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$vendorDir = dirname(__DIR__);
$baseDir = dirname($vendorDir);
return array(

View File

@@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit57e007bdf76a1fe336cb43b59389545b
class ComposerAutoloaderInit07320ff48ed93afe07402c80408feb2f
{
private static $loader;
@@ -22,31 +22,14 @@ class ComposerAutoloaderInit57e007bdf76a1fe336cb43b59389545b
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit57e007bdf76a1fe336cb43b59389545b', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
spl_autoload_unregister(array('ComposerAutoloaderInit57e007bdf76a1fe336cb43b59389545b', 'loadClassLoader'));
require __DIR__ . '/platform_check.php';
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
if ($useStaticLoader) {
require_once __DIR__ . '/autoload_static.php';
spl_autoload_register(array('ComposerAutoloaderInit07320ff48ed93afe07402c80408feb2f', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit07320ff48ed93afe07402c80408feb2f', 'loadClassLoader'));
call_user_func(\Composer\Autoload\ComposerStaticInit57e007bdf76a1fe336cb43b59389545b::getInitializer($loader));
} else {
$map = require __DIR__ . '/autoload_namespaces.php';
foreach ($map as $namespace => $path) {
$loader->set($namespace, $path);
}
$map = require __DIR__ . '/autoload_psr4.php';
foreach ($map as $namespace => $path) {
$loader->setPsr4($namespace, $path);
}
$classMap = require __DIR__ . '/autoload_classmap.php';
if ($classMap) {
$loader->addClassMap($classMap);
}
}
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit07320ff48ed93afe07402c80408feb2f::getInitializer($loader));
$loader->register(true);

View File

@@ -4,9 +4,10 @@
namespace Composer\Autoload;
class ComposerStaticInit57e007bdf76a1fe336cb43b59389545b
class ComposerStaticInit07320ff48ed93afe07402c80408feb2f
{
public static $classMap = array (
'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
'PLL_AS3CF' => __DIR__ . '/../..' . '/integrations/wp-offload-media/as3cf.php',
'PLL_Abstract_Sitemaps' => __DIR__ . '/../..' . '/modules/sitemaps/abstract-sitemaps.php',
'PLL_Accept_Language' => __DIR__ . '/../..' . '/frontend/accept-language.php',
@@ -44,14 +45,16 @@ class ComposerStaticInit57e007bdf76a1fe336cb43b59389545b
'PLL_Choose_Lang_Domain' => __DIR__ . '/../..' . '/frontend/choose-lang-domain.php',
'PLL_Choose_Lang_Url' => __DIR__ . '/../..' . '/frontend/choose-lang-url.php',
'PLL_Cookie' => __DIR__ . '/../..' . '/include/cookie.php',
'PLL_Db_Tools' => __DIR__ . '/../..' . '/include/db-tools.php',
'PLL_Default_Term' => __DIR__ . '/../..' . '/include/default-term.php',
'PLL_Domain_Mapping' => __DIR__ . '/../..' . '/integrations/domain-mapping/domain-mapping.php',
'PLL_Duplicate_Post' => __DIR__ . '/../..' . '/integrations/duplicate-post/duplicate-post.php',
'PLL_Featured_Content' => __DIR__ . '/../..' . '/integrations/jetpack/featured-content.php',
'PLL_Filter_REST_Routes' => __DIR__ . '/../..' . '/include/filter-rest-routes.php',
'PLL_Filters' => __DIR__ . '/../..' . '/include/filters.php',
'PLL_Filters_Links' => __DIR__ . '/../..' . '/include/filters-links.php',
'PLL_Filters_Sanitization' => __DIR__ . '/../..' . '/include/filters-sanitization.php',
'PLL_Filters_Widgets_Options' => __DIR__ . '/../..' . '/include/filters-widgets-options.php',
'PLL_Format_Util' => __DIR__ . '/../..' . '/include/format-util.php',
'PLL_Frontend' => __DIR__ . '/../..' . '/frontend/frontend.php',
'PLL_Frontend_Auto_Translate' => __DIR__ . '/../..' . '/frontend/frontend-auto-translate.php',
'PLL_Frontend_Filters' => __DIR__ . '/../..' . '/frontend/frontend-filters.php',
@@ -92,6 +95,7 @@ class ComposerStaticInit57e007bdf76a1fe336cb43b59389545b
'PLL_Settings_Licenses' => __DIR__ . '/../..' . '/settings/settings-licenses.php',
'PLL_Settings_Media' => __DIR__ . '/../..' . '/settings/settings-media.php',
'PLL_Settings_Module' => __DIR__ . '/../..' . '/settings/settings-module.php',
'PLL_Settings_Preview_Machine_Translation' => __DIR__ . '/../..' . '/modules/machine-translation/settings-preview-machine-translation.php',
'PLL_Settings_Preview_Share_Slug' => __DIR__ . '/../..' . '/modules/share-slug/settings-preview-share-slug.php',
'PLL_Settings_Preview_Translate_Slugs' => __DIR__ . '/../..' . '/modules/translate-slugs/settings-preview-translate-slugs.php',
'PLL_Settings_Sync' => __DIR__ . '/../..' . '/modules/sync/settings-sync.php',
@@ -109,6 +113,7 @@ class ComposerStaticInit57e007bdf76a1fe336cb43b59389545b
'PLL_Table_Languages' => __DIR__ . '/../..' . '/settings/table-languages.php',
'PLL_Table_Settings' => __DIR__ . '/../..' . '/settings/table-settings.php',
'PLL_Table_String' => __DIR__ . '/../..' . '/settings/table-string.php',
'PLL_Term_Slug' => __DIR__ . '/../..' . '/include/term-slug.php',
'PLL_Translatable_Object' => __DIR__ . '/../..' . '/include/translatable-object.php',
'PLL_Translatable_Object_With_Types_Interface' => __DIR__ . '/../..' . '/include/translatable-object-with-types-interface.php',
'PLL_Translatable_Object_With_Types_Trait' => __DIR__ . '/../..' . '/include/translatable-object-with-types-trait.php',
@@ -135,12 +140,42 @@ class ComposerStaticInit57e007bdf76a1fe336cb43b59389545b
'PLL_WordPress_Importer' => __DIR__ . '/../..' . '/integrations/wp-importer/wordpress-importer.php',
'PLL_Yarpp' => __DIR__ . '/../..' . '/integrations/yarpp/yarpp.php',
'Polylang' => __DIR__ . '/../..' . '/include/class-polylang.php',
'WP_Syntex\\Polylang\\Model\\Languages' => __DIR__ . '/../..' . '/include/Model/Languages.php',
'WP_Syntex\\Polylang\\Model\\Post_Types' => __DIR__ . '/../..' . '/include/Model/Post_Types.php',
'WP_Syntex\\Polylang\\Model\\Taxonomies' => __DIR__ . '/../..' . '/include/Model/Taxonomies.php',
'WP_Syntex\\Polylang\\Options\\Abstract_Option' => __DIR__ . '/../..' . '/include/Options/Abstract_Option.php',
'WP_Syntex\\Polylang\\Options\\Business\\Abstract_Object_Types' => __DIR__ . '/../..' . '/include/Options/Business/Abstract_Object_Types.php',
'WP_Syntex\\Polylang\\Options\\Business\\Browser' => __DIR__ . '/../..' . '/include/Options/Business/Browser.php',
'WP_Syntex\\Polylang\\Options\\Business\\Default_Lang' => __DIR__ . '/../..' . '/include/Options/Business/Default_Lang.php',
'WP_Syntex\\Polylang\\Options\\Business\\Domains' => __DIR__ . '/../..' . '/include/Options/Business/Domains.php',
'WP_Syntex\\Polylang\\Options\\Business\\First_Activation' => __DIR__ . '/../..' . '/include/Options/Business/First_Activation.php',
'WP_Syntex\\Polylang\\Options\\Business\\Force_Lang' => __DIR__ . '/../..' . '/include/Options/Business/Force_Lang.php',
'WP_Syntex\\Polylang\\Options\\Business\\Hide_Default' => __DIR__ . '/../..' . '/include/Options/Business/Hide_Default.php',
'WP_Syntex\\Polylang\\Options\\Business\\Language_Taxonomies' => __DIR__ . '/../..' . '/include/Options/Business/Language_Taxonomies.php',
'WP_Syntex\\Polylang\\Options\\Business\\Media_Support' => __DIR__ . '/../..' . '/include/Options/Business/Media_Support.php',
'WP_Syntex\\Polylang\\Options\\Business\\Nav_Menus' => __DIR__ . '/../..' . '/include/Options/Business/Nav_Menus.php',
'WP_Syntex\\Polylang\\Options\\Business\\Post_Types' => __DIR__ . '/../..' . '/include/Options/Business/Post_Types.php',
'WP_Syntex\\Polylang\\Options\\Business\\Previous_Version' => __DIR__ . '/../..' . '/include/Options/Business/Previous_Version.php',
'WP_Syntex\\Polylang\\Options\\Business\\Redirect_Lang' => __DIR__ . '/../..' . '/include/Options/Business/Redirect_Lang.php',
'WP_Syntex\\Polylang\\Options\\Business\\Rewrite' => __DIR__ . '/../..' . '/include/Options/Business/Rewrite.php',
'WP_Syntex\\Polylang\\Options\\Business\\Sync' => __DIR__ . '/../..' . '/include/Options/Business/Sync.php',
'WP_Syntex\\Polylang\\Options\\Business\\Taxonomies' => __DIR__ . '/../..' . '/include/Options/Business/Taxonomies.php',
'WP_Syntex\\Polylang\\Options\\Business\\Version' => __DIR__ . '/../..' . '/include/Options/Business/Version.php',
'WP_Syntex\\Polylang\\Options\\Options' => __DIR__ . '/../..' . '/include/Options/Options.php',
'WP_Syntex\\Polylang\\Options\\Primitive\\Abstract_Boolean' => __DIR__ . '/../..' . '/include/Options/Primitive/Abstract_Boolean.php',
'WP_Syntex\\Polylang\\Options\\Primitive\\Abstract_List' => __DIR__ . '/../..' . '/include/Options/Primitive/Abstract_List.php',
'WP_Syntex\\Polylang\\Options\\Primitive\\Abstract_String' => __DIR__ . '/../..' . '/include/Options/Primitive/Abstract_String.php',
'WP_Syntex\\Polylang\\Options\\Registry' => __DIR__ . '/../..' . '/include/Options/Registry.php',
'WP_Syntex\\Polylang\\REST\\API' => __DIR__ . '/../..' . '/modules/REST/API.php',
'WP_Syntex\\Polylang\\REST\\Abstract_Controller' => __DIR__ . '/../..' . '/modules/REST/Abstract_Controller.php',
'WP_Syntex\\Polylang\\REST\\V1\\Languages' => __DIR__ . '/../..' . '/modules/REST/V1/Languages.php',
'WP_Syntex\\Polylang\\REST\\V1\\Settings' => __DIR__ . '/../..' . '/modules/REST/V1/Settings.php',
);
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->classMap = ComposerStaticInit57e007bdf76a1fe336cb43b59389545b::$classMap;
$loader->classMap = ComposerStaticInit07320ff48ed93afe07402c80408feb2f::$classMap;
}, null, ClassLoader::class);
}

View File

@@ -1 +1,5 @@
[]
{
"packages": [],
"dev": false,
"dev-package-names": []
}

View File

@@ -1,9 +1,9 @@
<?php return array(
'root' => array(
'name' => 'wpsyntex/polylang',
'pretty_version' => '3.2.x-dev',
'version' => '3.2.9999999.9999999-dev',
'reference' => '9555976eb2dc703519184632f83fa6114d3a9ce3',
'pretty_version' => '3.7.x-dev',
'version' => '3.7.9999999.9999999-dev',
'reference' => '96826cc8d3b5ca020f96d8a80f2bf5f1263998a3',
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
@@ -11,9 +11,9 @@
),
'versions' => array(
'wpsyntex/polylang' => array(
'pretty_version' => '3.2.x-dev',
'version' => '3.2.9999999.9999999-dev',
'reference' => '9555976eb2dc703519184632f83fa6114d3a9ce3',
'pretty_version' => '3.7.x-dev',
'version' => '3.7.9999999.9999999-dev',
'reference' => '96826cc8d3b5ca020f96d8a80f2bf5f1263998a3',
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),

View File

@@ -4,8 +4,8 @@
$issues = array();
if (!(PHP_VERSION_ID >= 50600)) {
$issues[] = 'Your Composer dependencies require a PHP version ">= 5.6.0". You are running ' . PHP_VERSION . '.';
if (!(PHP_VERSION_ID >= 70200)) {
$issues[] = 'Your Composer dependencies require a PHP version ">= 7.2.0". You are running ' . PHP_VERSION . '.';
}
if ($issues) {