Commit realizado el 12:13:52 08-04-2024
This commit is contained in:
7
wp-content/plugins/wpforms-lite/vendor/autoload.php
vendored
Normal file
7
wp-content/plugins/wpforms-lite/vendor/autoload.php
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
// autoload.php @generated by Composer
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInitb4819db6ac3adf440bb861aadbfcbf60::getLoader();
|
445
wp-content/plugins/wpforms-lite/vendor/composer/ClassLoader.php
vendored
Normal file
445
wp-content/plugins/wpforms-lite/vendor/composer/ClassLoader.php
vendored
Normal file
@@ -0,0 +1,445 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Composer.
|
||||
*
|
||||
* (c) Nils Adermann <naderman@naderman.de>
|
||||
* Jordi Boggiano <j.boggiano@seld.be>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
/**
|
||||
* ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
|
||||
*
|
||||
* $loader = new \Composer\Autoload\ClassLoader();
|
||||
*
|
||||
* // register classes with namespaces
|
||||
* $loader->add('Symfony\Component', __DIR__.'/component');
|
||||
* $loader->add('Symfony', __DIR__.'/framework');
|
||||
*
|
||||
* // activate the autoloader
|
||||
* $loader->register();
|
||||
*
|
||||
* // to enable searching the include path (eg. for PEAR packages)
|
||||
* $loader->setUseIncludePath(true);
|
||||
*
|
||||
* In this example, if you try to use a class in the Symfony\Component
|
||||
* namespace or one of its children (Symfony\Component\Console for instance),
|
||||
* the autoloader will first look for the class under the component/
|
||||
* directory, and it will then fallback to the framework/ directory if not
|
||||
* found before giving up.
|
||||
*
|
||||
* This class is loosely based on the Symfony UniversalClassLoader.
|
||||
*
|
||||
* @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/
|
||||
*/
|
||||
class ClassLoader
|
||||
{
|
||||
// PSR-4
|
||||
private $prefixLengthsPsr4 = array();
|
||||
private $prefixDirsPsr4 = array();
|
||||
private $fallbackDirsPsr4 = array();
|
||||
|
||||
// PSR-0
|
||||
private $prefixesPsr0 = array();
|
||||
private $fallbackDirsPsr0 = array();
|
||||
|
||||
private $useIncludePath = false;
|
||||
private $classMap = array();
|
||||
private $classMapAuthoritative = false;
|
||||
private $missingClasses = array();
|
||||
private $apcuPrefix;
|
||||
|
||||
public function getPrefixes()
|
||||
{
|
||||
if (!empty($this->prefixesPsr0)) {
|
||||
return call_user_func_array('array_merge', array_values($this->prefixesPsr0));
|
||||
}
|
||||
|
||||
return array();
|
||||
}
|
||||
|
||||
public function getPrefixesPsr4()
|
||||
{
|
||||
return $this->prefixDirsPsr4;
|
||||
}
|
||||
|
||||
public function getFallbackDirs()
|
||||
{
|
||||
return $this->fallbackDirsPsr0;
|
||||
}
|
||||
|
||||
public function getFallbackDirsPsr4()
|
||||
{
|
||||
return $this->fallbackDirsPsr4;
|
||||
}
|
||||
|
||||
public function getClassMap()
|
||||
{
|
||||
return $this->classMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $classMap Class to filename map
|
||||
*/
|
||||
public function addClassMap(array $classMap)
|
||||
{
|
||||
if ($this->classMap) {
|
||||
$this->classMap = array_merge($this->classMap, $classMap);
|
||||
} else {
|
||||
$this->classMap = $classMap;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
public function add($prefix, $paths, $prepend = false)
|
||||
{
|
||||
if (!$prefix) {
|
||||
if ($prepend) {
|
||||
$this->fallbackDirsPsr0 = array_merge(
|
||||
(array) $paths,
|
||||
$this->fallbackDirsPsr0
|
||||
);
|
||||
} else {
|
||||
$this->fallbackDirsPsr0 = array_merge(
|
||||
$this->fallbackDirsPsr0,
|
||||
(array) $paths
|
||||
);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
$first = $prefix[0];
|
||||
if (!isset($this->prefixesPsr0[$first][$prefix])) {
|
||||
$this->prefixesPsr0[$first][$prefix] = (array) $paths;
|
||||
|
||||
return;
|
||||
}
|
||||
if ($prepend) {
|
||||
$this->prefixesPsr0[$first][$prefix] = array_merge(
|
||||
(array) $paths,
|
||||
$this->prefixesPsr0[$first][$prefix]
|
||||
);
|
||||
} else {
|
||||
$this->prefixesPsr0[$first][$prefix] = array_merge(
|
||||
$this->prefixesPsr0[$first][$prefix],
|
||||
(array) $paths
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
*/
|
||||
public function addPsr4($prefix, $paths, $prepend = false)
|
||||
{
|
||||
if (!$prefix) {
|
||||
// Register directories for the root namespace.
|
||||
if ($prepend) {
|
||||
$this->fallbackDirsPsr4 = array_merge(
|
||||
(array) $paths,
|
||||
$this->fallbackDirsPsr4
|
||||
);
|
||||
} else {
|
||||
$this->fallbackDirsPsr4 = array_merge(
|
||||
$this->fallbackDirsPsr4,
|
||||
(array) $paths
|
||||
);
|
||||
}
|
||||
} elseif (!isset($this->prefixDirsPsr4[$prefix])) {
|
||||
// Register directories for a new namespace.
|
||||
$length = strlen($prefix);
|
||||
if ('\\' !== $prefix[$length - 1]) {
|
||||
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;
|
||||
} elseif ($prepend) {
|
||||
// Prepend directories for an already registered namespace.
|
||||
$this->prefixDirsPsr4[$prefix] = array_merge(
|
||||
(array) $paths,
|
||||
$this->prefixDirsPsr4[$prefix]
|
||||
);
|
||||
} else {
|
||||
// Append directories for an already registered namespace.
|
||||
$this->prefixDirsPsr4[$prefix] = array_merge(
|
||||
$this->prefixDirsPsr4[$prefix],
|
||||
(array) $paths
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
public function set($prefix, $paths)
|
||||
{
|
||||
if (!$prefix) {
|
||||
$this->fallbackDirsPsr0 = (array) $paths;
|
||||
} else {
|
||||
$this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
*/
|
||||
public function setPsr4($prefix, $paths)
|
||||
{
|
||||
if (!$prefix) {
|
||||
$this->fallbackDirsPsr4 = (array) $paths;
|
||||
} else {
|
||||
$length = strlen($prefix);
|
||||
if ('\\' !== $prefix[$length - 1]) {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Turns on searching the include path for class files.
|
||||
*
|
||||
* @param bool $useIncludePath
|
||||
*/
|
||||
public function setUseIncludePath($useIncludePath)
|
||||
{
|
||||
$this->useIncludePath = $useIncludePath;
|
||||
}
|
||||
|
||||
/**
|
||||
* Can be used to check if the autoloader uses the include path to check
|
||||
* for classes.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function getUseIncludePath()
|
||||
{
|
||||
return $this->useIncludePath;
|
||||
}
|
||||
|
||||
/**
|
||||
* Turns off searching the prefix and fallback directories for classes
|
||||
* that have not been registered with the class map.
|
||||
*
|
||||
* @param bool $classMapAuthoritative
|
||||
*/
|
||||
public function setClassMapAuthoritative($classMapAuthoritative)
|
||||
{
|
||||
$this->classMapAuthoritative = $classMapAuthoritative;
|
||||
}
|
||||
|
||||
/**
|
||||
* Should class lookup fail if not found in the current class map?
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isClassMapAuthoritative()
|
||||
{
|
||||
return $this->classMapAuthoritative;
|
||||
}
|
||||
|
||||
/**
|
||||
* APCu prefix to use to cache found/not-found classes, if the extension is enabled.
|
||||
*
|
||||
* @param string|null $apcuPrefix
|
||||
*/
|
||||
public function setApcuPrefix($apcuPrefix)
|
||||
{
|
||||
$this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* The APCu prefix in use, or null if APCu caching is not enabled.
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getApcuPrefix()
|
||||
{
|
||||
return $this->apcuPrefix;
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers this instance as an autoloader.
|
||||
*
|
||||
* @param bool $prepend Whether to prepend the autoloader or not
|
||||
*/
|
||||
public function register($prepend = false)
|
||||
{
|
||||
spl_autoload_register(array($this, 'loadClass'), true, $prepend);
|
||||
}
|
||||
|
||||
/**
|
||||
* Unregisters this instance as an autoloader.
|
||||
*/
|
||||
public function unregister()
|
||||
{
|
||||
spl_autoload_unregister(array($this, 'loadClass'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads the given class or interface.
|
||||
*
|
||||
* @param string $class The name of the class
|
||||
* @return bool|null True if loaded, null otherwise
|
||||
*/
|
||||
public function loadClass($class)
|
||||
{
|
||||
if ($file = $this->findFile($class)) {
|
||||
includeFile($file);
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Finds the path to the file where the class is defined.
|
||||
*
|
||||
* @param string $class The name of the class
|
||||
*
|
||||
* @return string|false The path if found, false otherwise
|
||||
*/
|
||||
public function findFile($class)
|
||||
{
|
||||
// class map lookup
|
||||
if (isset($this->classMap[$class])) {
|
||||
return $this->classMap[$class];
|
||||
}
|
||||
if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
|
||||
return false;
|
||||
}
|
||||
if (null !== $this->apcuPrefix) {
|
||||
$file = apcu_fetch($this->apcuPrefix.$class, $hit);
|
||||
if ($hit) {
|
||||
return $file;
|
||||
}
|
||||
}
|
||||
|
||||
$file = $this->findFileWithExtension($class, '.php');
|
||||
|
||||
// Search for Hack files if we are running on HHVM
|
||||
if (false === $file && defined('HHVM_VERSION')) {
|
||||
$file = $this->findFileWithExtension($class, '.hh');
|
||||
}
|
||||
|
||||
if (null !== $this->apcuPrefix) {
|
||||
apcu_add($this->apcuPrefix.$class, $file);
|
||||
}
|
||||
|
||||
if (false === $file) {
|
||||
// Remember that this class does not exist.
|
||||
$this->missingClasses[$class] = true;
|
||||
}
|
||||
|
||||
return $file;
|
||||
}
|
||||
|
||||
private function findFileWithExtension($class, $ext)
|
||||
{
|
||||
// PSR-4 lookup
|
||||
$logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
|
||||
|
||||
$first = $class[0];
|
||||
if (isset($this->prefixLengthsPsr4[$first])) {
|
||||
$subPath = $class;
|
||||
while (false !== $lastPos = strrpos($subPath, '\\')) {
|
||||
$subPath = substr($subPath, 0, $lastPos);
|
||||
$search = $subPath . '\\';
|
||||
if (isset($this->prefixDirsPsr4[$search])) {
|
||||
$pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
|
||||
foreach ($this->prefixDirsPsr4[$search] as $dir) {
|
||||
if (file_exists($file = $dir . $pathEnd)) {
|
||||
return $file;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// PSR-4 fallback dirs
|
||||
foreach ($this->fallbackDirsPsr4 as $dir) {
|
||||
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
|
||||
return $file;
|
||||
}
|
||||
}
|
||||
|
||||
// PSR-0 lookup
|
||||
if (false !== $pos = strrpos($class, '\\')) {
|
||||
// namespaced class name
|
||||
$logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1)
|
||||
. strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
|
||||
} else {
|
||||
// PEAR-like class name
|
||||
$logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
|
||||
}
|
||||
|
||||
if (isset($this->prefixesPsr0[$first])) {
|
||||
foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
|
||||
if (0 === strpos($class, $prefix)) {
|
||||
foreach ($dirs as $dir) {
|
||||
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
|
||||
return $file;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// PSR-0 fallback dirs
|
||||
foreach ($this->fallbackDirsPsr0 as $dir) {
|
||||
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
|
||||
return $file;
|
||||
}
|
||||
}
|
||||
|
||||
// PSR-0 include paths.
|
||||
if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
|
||||
return $file;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Scope isolated include.
|
||||
*
|
||||
* Prevents access to $this/self from included files.
|
||||
*/
|
||||
function includeFile($file)
|
||||
{
|
||||
include $file;
|
||||
}
|
359
wp-content/plugins/wpforms-lite/vendor/composer/InstalledVersions.php
vendored
Normal file
359
wp-content/plugins/wpforms-lite/vendor/composer/InstalledVersions.php
vendored
Normal file
@@ -0,0 +1,359 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Composer.
|
||||
*
|
||||
* (c) Nils Adermann <naderman@naderman.de>
|
||||
* Jordi Boggiano <j.boggiano@seld.be>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Composer;
|
||||
|
||||
use Composer\Autoload\ClassLoader;
|
||||
use Composer\Semver\VersionParser;
|
||||
|
||||
/**
|
||||
* This class is copied in every Composer installed project and available to all
|
||||
*
|
||||
* See also https://getcomposer.org/doc/07-runtime.md#installed-versions
|
||||
*
|
||||
* To require its presence, you can require `composer-runtime-api ^2.0`
|
||||
*
|
||||
* @final
|
||||
*/
|
||||
class InstalledVersions
|
||||
{
|
||||
/**
|
||||
* @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|null
|
||||
*/
|
||||
private static $canGetVendors;
|
||||
|
||||
/**
|
||||
* @var array[]
|
||||
* @psalm-var array<string, 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[]}>}>
|
||||
*/
|
||||
private static $installedByVendor = array();
|
||||
|
||||
/**
|
||||
* Returns a list of all package names which are present, either by being installed, replaced or provided
|
||||
*
|
||||
* @return string[]
|
||||
* @psalm-return list<string>
|
||||
*/
|
||||
public static function getInstalledPackages()
|
||||
{
|
||||
$packages = array();
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
$packages[] = array_keys($installed['versions']);
|
||||
}
|
||||
|
||||
if (1 === \count($packages)) {
|
||||
return $packages[0];
|
||||
}
|
||||
|
||||
return array_keys(array_flip(\call_user_func_array('array_merge', $packages)));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of all package names with a specific type e.g. 'library'
|
||||
*
|
||||
* @param string $type
|
||||
* @return string[]
|
||||
* @psalm-return list<string>
|
||||
*/
|
||||
public static function getInstalledPackagesByType($type)
|
||||
{
|
||||
$packagesByType = array();
|
||||
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
foreach ($installed['versions'] as $name => $package) {
|
||||
if (isset($package['type']) && $package['type'] === $type) {
|
||||
$packagesByType[] = $name;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $packagesByType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks whether the given package is installed
|
||||
*
|
||||
* This also returns true if the package name is provided or replaced by another package
|
||||
*
|
||||
* @param string $packageName
|
||||
* @param bool $includeDevRequirements
|
||||
* @return bool
|
||||
*/
|
||||
public static function isInstalled($packageName, $includeDevRequirements = true)
|
||||
{
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
if (isset($installed['versions'][$packageName])) {
|
||||
return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks whether the given package satisfies a version constraint
|
||||
*
|
||||
* e.g. If you want to know whether version 2.3+ of package foo/bar is installed, you would call:
|
||||
*
|
||||
* Composer\InstalledVersions::satisfies(new VersionParser, 'foo/bar', '^2.3')
|
||||
*
|
||||
* @param VersionParser $parser Install composer/semver to have access to this class and functionality
|
||||
* @param string $packageName
|
||||
* @param string|null $constraint A version constraint to check for, if you pass one you have to make sure composer/semver is required by your package
|
||||
* @return bool
|
||||
*/
|
||||
public static function satisfies(VersionParser $parser, $packageName, $constraint)
|
||||
{
|
||||
$constraint = $parser->parseConstraints((string) $constraint);
|
||||
$provided = $parser->parseConstraints(self::getVersionRanges($packageName));
|
||||
|
||||
return $provided->matches($constraint);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a version constraint representing all the range(s) which are installed for a given package
|
||||
*
|
||||
* It is easier to use this via isInstalled() with the $constraint argument if you need to check
|
||||
* whether a given version of a package is installed, and not just whether it exists
|
||||
*
|
||||
* @param string $packageName
|
||||
* @return string Version constraint usable with composer/semver
|
||||
*/
|
||||
public static function getVersionRanges($packageName)
|
||||
{
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
if (!isset($installed['versions'][$packageName])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$ranges = array();
|
||||
if (isset($installed['versions'][$packageName]['pretty_version'])) {
|
||||
$ranges[] = $installed['versions'][$packageName]['pretty_version'];
|
||||
}
|
||||
if (array_key_exists('aliases', $installed['versions'][$packageName])) {
|
||||
$ranges = array_merge($ranges, $installed['versions'][$packageName]['aliases']);
|
||||
}
|
||||
if (array_key_exists('replaced', $installed['versions'][$packageName])) {
|
||||
$ranges = array_merge($ranges, $installed['versions'][$packageName]['replaced']);
|
||||
}
|
||||
if (array_key_exists('provided', $installed['versions'][$packageName])) {
|
||||
$ranges = array_merge($ranges, $installed['versions'][$packageName]['provided']);
|
||||
}
|
||||
|
||||
return implode(' || ', $ranges);
|
||||
}
|
||||
|
||||
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $packageName
|
||||
* @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present
|
||||
*/
|
||||
public static function getVersion($packageName)
|
||||
{
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
if (!isset($installed['versions'][$packageName])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!isset($installed['versions'][$packageName]['version'])) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $installed['versions'][$packageName]['version'];
|
||||
}
|
||||
|
||||
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $packageName
|
||||
* @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present
|
||||
*/
|
||||
public static function getPrettyVersion($packageName)
|
||||
{
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
if (!isset($installed['versions'][$packageName])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!isset($installed['versions'][$packageName]['pretty_version'])) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $installed['versions'][$packageName]['pretty_version'];
|
||||
}
|
||||
|
||||
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $packageName
|
||||
* @return string|null If the package is being replaced or provided but is not really installed, null will be returned as reference
|
||||
*/
|
||||
public static function getReference($packageName)
|
||||
{
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
if (!isset($installed['versions'][$packageName])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!isset($installed['versions'][$packageName]['reference'])) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $installed['versions'][$packageName]['reference'];
|
||||
}
|
||||
|
||||
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $packageName
|
||||
* @return string|null If the package is being replaced or provided but is not really installed, null will be returned as install path. Packages of type metapackages also have a null install path.
|
||||
*/
|
||||
public static function getInstallPath($packageName)
|
||||
{
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
if (!isset($installed['versions'][$packageName])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
return isset($installed['versions'][$packageName]['install_path']) ? $installed['versions'][$packageName]['install_path'] : null;
|
||||
}
|
||||
|
||||
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
* @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}
|
||||
*/
|
||||
public static function getRootPackage()
|
||||
{
|
||||
$installed = self::getInstalled();
|
||||
|
||||
return $installed[0]['root'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the raw installed.php data for custom implementations
|
||||
*
|
||||
* @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
|
||||
* @return array[]
|
||||
* @psalm-return 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[]}>}
|
||||
*/
|
||||
public static function getRawData()
|
||||
{
|
||||
@trigger_error('getRawData only returns the first dataset loaded, which may not be what you expect. Use getAllRawData() instead which returns all datasets for all autoloaders present in the process.', E_USER_DEPRECATED);
|
||||
|
||||
if (null === self::$installed) {
|
||||
// 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 = include __DIR__ . '/installed.php';
|
||||
} else {
|
||||
self::$installed = array();
|
||||
}
|
||||
}
|
||||
|
||||
return self::$installed;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the raw data of all installed.php which are currently loaded for custom implementations
|
||||
*
|
||||
* @return array[]
|
||||
* @psalm-return list<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[]}>}>
|
||||
*/
|
||||
public static function getAllRawData()
|
||||
{
|
||||
return self::getInstalled();
|
||||
}
|
||||
|
||||
/**
|
||||
* Lets you reload the static array from another file
|
||||
*
|
||||
* This is only useful for complex integrations in which a project needs to use
|
||||
* this class but then also needs to execute another project's autoloader in process,
|
||||
* and wants to ensure both projects have access to their version of installed.php.
|
||||
*
|
||||
* A typical case would be PHPUnit, where it would need to make sure it reads all
|
||||
* the data it needs from this class, then call reload() with
|
||||
* `require $CWD/vendor/composer/installed.php` (or similar) as input to make sure
|
||||
* the project in which it runs can then also use this class safely, without
|
||||
* interference between PHPUnit's dependencies and the project's dependencies.
|
||||
*
|
||||
* @param array[] $data A vendor/composer/installed.php data set
|
||||
* @return void
|
||||
*
|
||||
* @psalm-param 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[]}>} $data
|
||||
*/
|
||||
public static function reload($data)
|
||||
{
|
||||
self::$installed = $data;
|
||||
self::$installedByVendor = array();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array[]
|
||||
* @psalm-return list<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[]}>}>
|
||||
*/
|
||||
private static function getInstalled()
|
||||
{
|
||||
if (null === self::$canGetVendors) {
|
||||
self::$canGetVendors = method_exists('Composer\Autoload\ClassLoader', 'getRegisteredLoaders');
|
||||
}
|
||||
|
||||
$installed = array();
|
||||
|
||||
if (self::$canGetVendors) {
|
||||
foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
|
||||
if (isset(self::$installedByVendor[$vendorDir])) {
|
||||
$installed[] = self::$installedByVendor[$vendorDir];
|
||||
} elseif (is_file($vendorDir.'/composer/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 $vendorDir.'/composer/installed.php';
|
||||
$installed[] = self::$installedByVendor[$vendorDir] = $required;
|
||||
if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
|
||||
self::$installed = $installed[count($installed) - 1];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null === self::$installed) {
|
||||
// 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') {
|
||||
/** @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();
|
||||
}
|
||||
}
|
||||
|
||||
if (self::$installed !== array()) {
|
||||
$installed[] = self::$installed;
|
||||
}
|
||||
|
||||
return $installed;
|
||||
}
|
||||
}
|
21
wp-content/plugins/wpforms-lite/vendor/composer/LICENSE
vendored
Normal file
21
wp-content/plugins/wpforms-lite/vendor/composer/LICENSE
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
Copyright (c) Nils Adermann, Jordi Boggiano
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is furnished
|
||||
to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
374
wp-content/plugins/wpforms-lite/vendor/composer/autoload_classmap.php
vendored
Normal file
374
wp-content/plugins/wpforms-lite/vendor/composer/autoload_classmap.php
vendored
Normal file
@@ -0,0 +1,374 @@
|
||||
<?php
|
||||
|
||||
// autoload_classmap.php @generated by Composer
|
||||
|
||||
$vendorDir = dirname(dirname(__FILE__));
|
||||
$baseDir = dirname($vendorDir);
|
||||
|
||||
return array(
|
||||
'WPForms\\Vendor\\Stripe\\Account' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Account.php',
|
||||
'WPForms\\Vendor\\Stripe\\AccountLink' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/AccountLink.php',
|
||||
'WPForms\\Vendor\\Stripe\\ApiOperations\\All' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/ApiOperations/All.php',
|
||||
'WPForms\\Vendor\\Stripe\\ApiOperations\\Create' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/ApiOperations/Create.php',
|
||||
'WPForms\\Vendor\\Stripe\\ApiOperations\\Delete' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/ApiOperations/Delete.php',
|
||||
'WPForms\\Vendor\\Stripe\\ApiOperations\\NestedResource' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/ApiOperations/NestedResource.php',
|
||||
'WPForms\\Vendor\\Stripe\\ApiOperations\\Request' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/ApiOperations/Request.php',
|
||||
'WPForms\\Vendor\\Stripe\\ApiOperations\\Retrieve' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/ApiOperations/Retrieve.php',
|
||||
'WPForms\\Vendor\\Stripe\\ApiOperations\\Search' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/ApiOperations/Search.php',
|
||||
'WPForms\\Vendor\\Stripe\\ApiOperations\\SingletonRetrieve' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/ApiOperations/SingletonRetrieve.php',
|
||||
'WPForms\\Vendor\\Stripe\\ApiOperations\\Update' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/ApiOperations/Update.php',
|
||||
'WPForms\\Vendor\\Stripe\\ApiRequestor' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/ApiRequestor.php',
|
||||
'WPForms\\Vendor\\Stripe\\ApiResource' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/ApiResource.php',
|
||||
'WPForms\\Vendor\\Stripe\\ApiResponse' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/ApiResponse.php',
|
||||
'WPForms\\Vendor\\Stripe\\ApplePayDomain' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/ApplePayDomain.php',
|
||||
'WPForms\\Vendor\\Stripe\\ApplicationFee' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/ApplicationFee.php',
|
||||
'WPForms\\Vendor\\Stripe\\ApplicationFeeRefund' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/ApplicationFeeRefund.php',
|
||||
'WPForms\\Vendor\\Stripe\\Apps\\Secret' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Apps/Secret.php',
|
||||
'WPForms\\Vendor\\Stripe\\Balance' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Balance.php',
|
||||
'WPForms\\Vendor\\Stripe\\BalanceTransaction' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/BalanceTransaction.php',
|
||||
'WPForms\\Vendor\\Stripe\\BankAccount' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/BankAccount.php',
|
||||
'WPForms\\Vendor\\Stripe\\BaseStripeClient' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/BaseStripeClient.php',
|
||||
'WPForms\\Vendor\\Stripe\\BaseStripeClientInterface' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/BaseStripeClientInterface.php',
|
||||
'WPForms\\Vendor\\Stripe\\BillingPortal\\Configuration' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/BillingPortal/Configuration.php',
|
||||
'WPForms\\Vendor\\Stripe\\BillingPortal\\Session' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/BillingPortal/Session.php',
|
||||
'WPForms\\Vendor\\Stripe\\Capability' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Capability.php',
|
||||
'WPForms\\Vendor\\Stripe\\Card' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Card.php',
|
||||
'WPForms\\Vendor\\Stripe\\CashBalance' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/CashBalance.php',
|
||||
'WPForms\\Vendor\\Stripe\\Charge' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Charge.php',
|
||||
'WPForms\\Vendor\\Stripe\\Checkout\\Session' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Checkout/Session.php',
|
||||
'WPForms\\Vendor\\Stripe\\Collection' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Collection.php',
|
||||
'WPForms\\Vendor\\Stripe\\CountrySpec' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/CountrySpec.php',
|
||||
'WPForms\\Vendor\\Stripe\\Coupon' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Coupon.php',
|
||||
'WPForms\\Vendor\\Stripe\\CreditNote' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/CreditNote.php',
|
||||
'WPForms\\Vendor\\Stripe\\CreditNoteLineItem' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/CreditNoteLineItem.php',
|
||||
'WPForms\\Vendor\\Stripe\\Customer' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Customer.php',
|
||||
'WPForms\\Vendor\\Stripe\\CustomerBalanceTransaction' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/CustomerBalanceTransaction.php',
|
||||
'WPForms\\Vendor\\Stripe\\CustomerCashBalanceTransaction' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/CustomerCashBalanceTransaction.php',
|
||||
'WPForms\\Vendor\\Stripe\\Discount' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Discount.php',
|
||||
'WPForms\\Vendor\\Stripe\\Dispute' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Dispute.php',
|
||||
'WPForms\\Vendor\\Stripe\\EphemeralKey' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/EphemeralKey.php',
|
||||
'WPForms\\Vendor\\Stripe\\ErrorObject' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/ErrorObject.php',
|
||||
'WPForms\\Vendor\\Stripe\\Event' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Event.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\ApiConnectionException' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Exception/ApiConnectionException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\ApiErrorException' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Exception/ApiErrorException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\AuthenticationException' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Exception/AuthenticationException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\BadMethodCallException' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Exception/BadMethodCallException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\CardException' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Exception/CardException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\ExceptionInterface' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Exception/ExceptionInterface.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\IdempotencyException' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Exception/IdempotencyException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\InvalidArgumentException' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Exception/InvalidArgumentException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\InvalidRequestException' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Exception/InvalidRequestException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\OAuth\\ExceptionInterface' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Exception/OAuth/ExceptionInterface.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\OAuth\\InvalidClientException' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Exception/OAuth/InvalidClientException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\OAuth\\InvalidGrantException' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Exception/OAuth/InvalidGrantException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\OAuth\\InvalidRequestException' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Exception/OAuth/InvalidRequestException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\OAuth\\InvalidScopeException' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Exception/OAuth/InvalidScopeException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\OAuth\\OAuthErrorException' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Exception/OAuth/OAuthErrorException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\OAuth\\UnknownOAuthErrorException' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Exception/OAuth/UnknownOAuthErrorException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\OAuth\\UnsupportedGrantTypeException' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Exception/OAuth/UnsupportedGrantTypeException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\OAuth\\UnsupportedResponseTypeException' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Exception/OAuth/UnsupportedResponseTypeException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\PermissionException' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Exception/PermissionException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\RateLimitException' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Exception/RateLimitException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\SignatureVerificationException' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Exception/SignatureVerificationException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\UnexpectedValueException' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Exception/UnexpectedValueException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\UnknownApiErrorException' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Exception/UnknownApiErrorException.php',
|
||||
'WPForms\\Vendor\\Stripe\\ExchangeRate' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/ExchangeRate.php',
|
||||
'WPForms\\Vendor\\Stripe\\File' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/File.php',
|
||||
'WPForms\\Vendor\\Stripe\\FileLink' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/FileLink.php',
|
||||
'WPForms\\Vendor\\Stripe\\FinancialConnections\\Account' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/FinancialConnections/Account.php',
|
||||
'WPForms\\Vendor\\Stripe\\FinancialConnections\\AccountOwner' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/FinancialConnections/AccountOwner.php',
|
||||
'WPForms\\Vendor\\Stripe\\FinancialConnections\\AccountOwnership' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/FinancialConnections/AccountOwnership.php',
|
||||
'WPForms\\Vendor\\Stripe\\FinancialConnections\\Session' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/FinancialConnections/Session.php',
|
||||
'WPForms\\Vendor\\Stripe\\FundingInstructions' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/FundingInstructions.php',
|
||||
'WPForms\\Vendor\\Stripe\\HttpClient\\ClientInterface' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/HttpClient/ClientInterface.php',
|
||||
'WPForms\\Vendor\\Stripe\\HttpClient\\CurlClient' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/HttpClient/CurlClient.php',
|
||||
'WPForms\\Vendor\\Stripe\\HttpClient\\StreamingClientInterface' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/HttpClient/StreamingClientInterface.php',
|
||||
'WPForms\\Vendor\\Stripe\\Identity\\VerificationReport' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Identity/VerificationReport.php',
|
||||
'WPForms\\Vendor\\Stripe\\Identity\\VerificationSession' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Identity/VerificationSession.php',
|
||||
'WPForms\\Vendor\\Stripe\\Invoice' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Invoice.php',
|
||||
'WPForms\\Vendor\\Stripe\\InvoiceItem' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/InvoiceItem.php',
|
||||
'WPForms\\Vendor\\Stripe\\InvoiceLineItem' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/InvoiceLineItem.php',
|
||||
'WPForms\\Vendor\\Stripe\\Issuing\\Authorization' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Issuing/Authorization.php',
|
||||
'WPForms\\Vendor\\Stripe\\Issuing\\Card' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Issuing/Card.php',
|
||||
'WPForms\\Vendor\\Stripe\\Issuing\\CardDetails' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Issuing/CardDetails.php',
|
||||
'WPForms\\Vendor\\Stripe\\Issuing\\Cardholder' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Issuing/Cardholder.php',
|
||||
'WPForms\\Vendor\\Stripe\\Issuing\\Dispute' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Issuing/Dispute.php',
|
||||
'WPForms\\Vendor\\Stripe\\Issuing\\Transaction' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Issuing/Transaction.php',
|
||||
'WPForms\\Vendor\\Stripe\\LineItem' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/LineItem.php',
|
||||
'WPForms\\Vendor\\Stripe\\LoginLink' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/LoginLink.php',
|
||||
'WPForms\\Vendor\\Stripe\\Mandate' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Mandate.php',
|
||||
'WPForms\\Vendor\\Stripe\\OAuth' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/OAuth.php',
|
||||
'WPForms\\Vendor\\Stripe\\OAuthErrorObject' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/OAuthErrorObject.php',
|
||||
'WPForms\\Vendor\\Stripe\\PaymentIntent' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/PaymentIntent.php',
|
||||
'WPForms\\Vendor\\Stripe\\PaymentLink' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/PaymentLink.php',
|
||||
'WPForms\\Vendor\\Stripe\\PaymentMethod' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/PaymentMethod.php',
|
||||
'WPForms\\Vendor\\Stripe\\Payout' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Payout.php',
|
||||
'WPForms\\Vendor\\Stripe\\Person' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Person.php',
|
||||
'WPForms\\Vendor\\Stripe\\Plan' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Plan.php',
|
||||
'WPForms\\Vendor\\Stripe\\Price' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Price.php',
|
||||
'WPForms\\Vendor\\Stripe\\Product' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Product.php',
|
||||
'WPForms\\Vendor\\Stripe\\PromotionCode' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/PromotionCode.php',
|
||||
'WPForms\\Vendor\\Stripe\\Quote' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Quote.php',
|
||||
'WPForms\\Vendor\\Stripe\\Radar\\EarlyFraudWarning' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Radar/EarlyFraudWarning.php',
|
||||
'WPForms\\Vendor\\Stripe\\Radar\\ValueList' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Radar/ValueList.php',
|
||||
'WPForms\\Vendor\\Stripe\\Radar\\ValueListItem' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Radar/ValueListItem.php',
|
||||
'WPForms\\Vendor\\Stripe\\RecipientTransfer' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/RecipientTransfer.php',
|
||||
'WPForms\\Vendor\\Stripe\\Refund' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Refund.php',
|
||||
'WPForms\\Vendor\\Stripe\\Reporting\\ReportRun' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Reporting/ReportRun.php',
|
||||
'WPForms\\Vendor\\Stripe\\Reporting\\ReportType' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Reporting/ReportType.php',
|
||||
'WPForms\\Vendor\\Stripe\\RequestTelemetry' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/RequestTelemetry.php',
|
||||
'WPForms\\Vendor\\Stripe\\Review' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Review.php',
|
||||
'WPForms\\Vendor\\Stripe\\SearchResult' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/SearchResult.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\AbstractService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/AbstractService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\AbstractServiceFactory' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/AbstractServiceFactory.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\AccountLinkService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/AccountLinkService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\AccountService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/AccountService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\ApplePayDomainService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/ApplePayDomainService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\ApplicationFeeService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/ApplicationFeeService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Apps\\AppsServiceFactory' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Apps/AppsServiceFactory.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Apps\\SecretService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Apps/SecretService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\BalanceService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/BalanceService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\BalanceTransactionService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/BalanceTransactionService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\BillingPortal\\BillingPortalServiceFactory' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/BillingPortal/BillingPortalServiceFactory.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\BillingPortal\\ConfigurationService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/BillingPortal/ConfigurationService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\BillingPortal\\SessionService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/BillingPortal/SessionService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\ChargeService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/ChargeService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Checkout\\CheckoutServiceFactory' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Checkout/CheckoutServiceFactory.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Checkout\\SessionService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Checkout/SessionService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\CoreServiceFactory' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/CoreServiceFactory.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\CountrySpecService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/CountrySpecService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\CouponService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/CouponService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\CreditNoteService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/CreditNoteService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\CustomerService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/CustomerService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\DisputeService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/DisputeService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\EphemeralKeyService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/EphemeralKeyService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\EventService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/EventService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\ExchangeRateService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/ExchangeRateService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\FileLinkService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/FileLinkService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\FileService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/FileService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\FinancialConnections\\AccountService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/FinancialConnections/AccountService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\FinancialConnections\\FinancialConnectionsServiceFactory' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/FinancialConnections/FinancialConnectionsServiceFactory.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\FinancialConnections\\SessionService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/FinancialConnections/SessionService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Identity\\IdentityServiceFactory' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Identity/IdentityServiceFactory.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Identity\\VerificationReportService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Identity/VerificationReportService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Identity\\VerificationSessionService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Identity/VerificationSessionService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\InvoiceItemService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/InvoiceItemService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\InvoiceService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/InvoiceService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Issuing\\AuthorizationService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Issuing/AuthorizationService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Issuing\\CardService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Issuing/CardService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Issuing\\CardholderService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Issuing/CardholderService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Issuing\\DisputeService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Issuing/DisputeService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Issuing\\IssuingServiceFactory' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Issuing/IssuingServiceFactory.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Issuing\\TransactionService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Issuing/TransactionService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\MandateService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/MandateService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\OAuthService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/OAuthService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\PaymentIntentService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/PaymentIntentService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\PaymentLinkService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/PaymentLinkService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\PaymentMethodService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/PaymentMethodService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\PayoutService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/PayoutService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\PlanService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/PlanService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\PriceService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/PriceService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\ProductService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/ProductService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\PromotionCodeService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/PromotionCodeService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\QuoteService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/QuoteService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Radar\\EarlyFraudWarningService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Radar/EarlyFraudWarningService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Radar\\RadarServiceFactory' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Radar/RadarServiceFactory.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Radar\\ValueListItemService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Radar/ValueListItemService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Radar\\ValueListService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Radar/ValueListService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\RefundService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/RefundService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Reporting\\ReportRunService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Reporting/ReportRunService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Reporting\\ReportTypeService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Reporting/ReportTypeService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Reporting\\ReportingServiceFactory' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Reporting/ReportingServiceFactory.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\ReviewService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/ReviewService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\SetupAttemptService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/SetupAttemptService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\SetupIntentService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/SetupIntentService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\ShippingRateService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/ShippingRateService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Sigma\\ScheduledQueryRunService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Sigma/ScheduledQueryRunService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Sigma\\SigmaServiceFactory' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Sigma/SigmaServiceFactory.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\SourceService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/SourceService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\SubscriptionItemService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/SubscriptionItemService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\SubscriptionScheduleService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/SubscriptionScheduleService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\SubscriptionService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/SubscriptionService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TaxCodeService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/TaxCodeService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TaxRateService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/TaxRateService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Tax\\CalculationService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Tax/CalculationService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Tax\\SettingsService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Tax/SettingsService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Tax\\TaxServiceFactory' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Tax/TaxServiceFactory.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Tax\\TransactionService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Tax/TransactionService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Terminal\\ConfigurationService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Terminal/ConfigurationService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Terminal\\ConnectionTokenService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Terminal/ConnectionTokenService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Terminal\\LocationService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Terminal/LocationService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Terminal\\ReaderService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Terminal/ReaderService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Terminal\\TerminalServiceFactory' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Terminal/TerminalServiceFactory.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TestHelpers\\CustomerService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/TestHelpers/CustomerService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TestHelpers\\Issuing\\CardService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/TestHelpers/Issuing/CardService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TestHelpers\\Issuing\\IssuingServiceFactory' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/TestHelpers/Issuing/IssuingServiceFactory.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TestHelpers\\RefundService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/TestHelpers/RefundService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TestHelpers\\Terminal\\ReaderService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/TestHelpers/Terminal/ReaderService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TestHelpers\\Terminal\\TerminalServiceFactory' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/TestHelpers/Terminal/TerminalServiceFactory.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TestHelpers\\TestClockService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/TestHelpers/TestClockService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TestHelpers\\TestHelpersServiceFactory' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/TestHelpers/TestHelpersServiceFactory.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TestHelpers\\Treasury\\InboundTransferService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/TestHelpers/Treasury/InboundTransferService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TestHelpers\\Treasury\\OutboundPaymentService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/TestHelpers/Treasury/OutboundPaymentService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TestHelpers\\Treasury\\OutboundTransferService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/TestHelpers/Treasury/OutboundTransferService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TestHelpers\\Treasury\\ReceivedCreditService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/TestHelpers/Treasury/ReceivedCreditService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TestHelpers\\Treasury\\ReceivedDebitService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/TestHelpers/Treasury/ReceivedDebitService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TestHelpers\\Treasury\\TreasuryServiceFactory' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/TestHelpers/Treasury/TreasuryServiceFactory.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TokenService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/TokenService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TopupService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/TopupService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TransferService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/TransferService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Treasury\\CreditReversalService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Treasury/CreditReversalService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Treasury\\DebitReversalService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Treasury/DebitReversalService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Treasury\\FinancialAccountService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Treasury/FinancialAccountService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Treasury\\InboundTransferService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Treasury/InboundTransferService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Treasury\\OutboundPaymentService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Treasury/OutboundPaymentService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Treasury\\OutboundTransferService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Treasury/OutboundTransferService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Treasury\\ReceivedCreditService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Treasury/ReceivedCreditService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Treasury\\ReceivedDebitService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Treasury/ReceivedDebitService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Treasury\\TransactionEntryService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Treasury/TransactionEntryService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Treasury\\TransactionService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Treasury/TransactionService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Treasury\\TreasuryServiceFactory' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/Treasury/TreasuryServiceFactory.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\WebhookEndpointService' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Service/WebhookEndpointService.php',
|
||||
'WPForms\\Vendor\\Stripe\\SetupAttempt' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/SetupAttempt.php',
|
||||
'WPForms\\Vendor\\Stripe\\SetupIntent' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/SetupIntent.php',
|
||||
'WPForms\\Vendor\\Stripe\\ShippingRate' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/ShippingRate.php',
|
||||
'WPForms\\Vendor\\Stripe\\Sigma\\ScheduledQueryRun' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Sigma/ScheduledQueryRun.php',
|
||||
'WPForms\\Vendor\\Stripe\\SingletonApiResource' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/SingletonApiResource.php',
|
||||
'WPForms\\Vendor\\Stripe\\Source' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Source.php',
|
||||
'WPForms\\Vendor\\Stripe\\SourceTransaction' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/SourceTransaction.php',
|
||||
'WPForms\\Vendor\\Stripe\\Stripe' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Stripe.php',
|
||||
'WPForms\\Vendor\\Stripe\\StripeClient' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/StripeClient.php',
|
||||
'WPForms\\Vendor\\Stripe\\StripeClientInterface' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/StripeClientInterface.php',
|
||||
'WPForms\\Vendor\\Stripe\\StripeObject' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/StripeObject.php',
|
||||
'WPForms\\Vendor\\Stripe\\StripeStreamingClientInterface' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/StripeStreamingClientInterface.php',
|
||||
'WPForms\\Vendor\\Stripe\\Subscription' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Subscription.php',
|
||||
'WPForms\\Vendor\\Stripe\\SubscriptionItem' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/SubscriptionItem.php',
|
||||
'WPForms\\Vendor\\Stripe\\SubscriptionSchedule' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/SubscriptionSchedule.php',
|
||||
'WPForms\\Vendor\\Stripe\\TaxCode' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/TaxCode.php',
|
||||
'WPForms\\Vendor\\Stripe\\TaxId' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/TaxId.php',
|
||||
'WPForms\\Vendor\\Stripe\\TaxRate' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/TaxRate.php',
|
||||
'WPForms\\Vendor\\Stripe\\Tax\\Calculation' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Tax/Calculation.php',
|
||||
'WPForms\\Vendor\\Stripe\\Tax\\CalculationLineItem' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Tax/CalculationLineItem.php',
|
||||
'WPForms\\Vendor\\Stripe\\Tax\\Settings' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Tax/Settings.php',
|
||||
'WPForms\\Vendor\\Stripe\\Tax\\Transaction' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Tax/Transaction.php',
|
||||
'WPForms\\Vendor\\Stripe\\Tax\\TransactionLineItem' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Tax/TransactionLineItem.php',
|
||||
'WPForms\\Vendor\\Stripe\\Terminal\\Configuration' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Terminal/Configuration.php',
|
||||
'WPForms\\Vendor\\Stripe\\Terminal\\ConnectionToken' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Terminal/ConnectionToken.php',
|
||||
'WPForms\\Vendor\\Stripe\\Terminal\\Location' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Terminal/Location.php',
|
||||
'WPForms\\Vendor\\Stripe\\Terminal\\Reader' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Terminal/Reader.php',
|
||||
'WPForms\\Vendor\\Stripe\\TestHelpers\\TestClock' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/TestHelpers/TestClock.php',
|
||||
'WPForms\\Vendor\\Stripe\\Token' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Token.php',
|
||||
'WPForms\\Vendor\\Stripe\\Topup' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Topup.php',
|
||||
'WPForms\\Vendor\\Stripe\\Transfer' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Transfer.php',
|
||||
'WPForms\\Vendor\\Stripe\\TransferReversal' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/TransferReversal.php',
|
||||
'WPForms\\Vendor\\Stripe\\Treasury\\CreditReversal' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Treasury/CreditReversal.php',
|
||||
'WPForms\\Vendor\\Stripe\\Treasury\\DebitReversal' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Treasury/DebitReversal.php',
|
||||
'WPForms\\Vendor\\Stripe\\Treasury\\FinancialAccount' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Treasury/FinancialAccount.php',
|
||||
'WPForms\\Vendor\\Stripe\\Treasury\\FinancialAccountFeatures' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Treasury/FinancialAccountFeatures.php',
|
||||
'WPForms\\Vendor\\Stripe\\Treasury\\InboundTransfer' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Treasury/InboundTransfer.php',
|
||||
'WPForms\\Vendor\\Stripe\\Treasury\\OutboundPayment' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Treasury/OutboundPayment.php',
|
||||
'WPForms\\Vendor\\Stripe\\Treasury\\OutboundTransfer' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Treasury/OutboundTransfer.php',
|
||||
'WPForms\\Vendor\\Stripe\\Treasury\\ReceivedCredit' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Treasury/ReceivedCredit.php',
|
||||
'WPForms\\Vendor\\Stripe\\Treasury\\ReceivedDebit' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Treasury/ReceivedDebit.php',
|
||||
'WPForms\\Vendor\\Stripe\\Treasury\\Transaction' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Treasury/Transaction.php',
|
||||
'WPForms\\Vendor\\Stripe\\Treasury\\TransactionEntry' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Treasury/TransactionEntry.php',
|
||||
'WPForms\\Vendor\\Stripe\\UsageRecord' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/UsageRecord.php',
|
||||
'WPForms\\Vendor\\Stripe\\UsageRecordSummary' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/UsageRecordSummary.php',
|
||||
'WPForms\\Vendor\\Stripe\\Util\\ApiVersion' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Util/ApiVersion.php',
|
||||
'WPForms\\Vendor\\Stripe\\Util\\CaseInsensitiveArray' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Util/CaseInsensitiveArray.php',
|
||||
'WPForms\\Vendor\\Stripe\\Util\\DefaultLogger' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Util/DefaultLogger.php',
|
||||
'WPForms\\Vendor\\Stripe\\Util\\LoggerInterface' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Util/LoggerInterface.php',
|
||||
'WPForms\\Vendor\\Stripe\\Util\\ObjectTypes' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Util/ObjectTypes.php',
|
||||
'WPForms\\Vendor\\Stripe\\Util\\RandomGenerator' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Util/RandomGenerator.php',
|
||||
'WPForms\\Vendor\\Stripe\\Util\\RequestOptions' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Util/RequestOptions.php',
|
||||
'WPForms\\Vendor\\Stripe\\Util\\Set' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Util/Set.php',
|
||||
'WPForms\\Vendor\\Stripe\\Util\\Util' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Util/Util.php',
|
||||
'WPForms\\Vendor\\Stripe\\Webhook' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/Webhook.php',
|
||||
'WPForms\\Vendor\\Stripe\\WebhookEndpoint' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/WebhookEndpoint.php',
|
||||
'WPForms\\Vendor\\Stripe\\WebhookSignature' => $baseDir . '/vendor_prefixed/stripe/stripe-php/lib/WebhookSignature.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\CssSelectorConverter' => $baseDir . '/vendor_prefixed/symfony/css-selector/CssSelectorConverter.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Exception\\ExceptionInterface' => $baseDir . '/vendor_prefixed/symfony/css-selector/Exception/ExceptionInterface.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Exception\\ExpressionErrorException' => $baseDir . '/vendor_prefixed/symfony/css-selector/Exception/ExpressionErrorException.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Exception\\InternalErrorException' => $baseDir . '/vendor_prefixed/symfony/css-selector/Exception/InternalErrorException.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Exception\\ParseException' => $baseDir . '/vendor_prefixed/symfony/css-selector/Exception/ParseException.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Exception\\SyntaxErrorException' => $baseDir . '/vendor_prefixed/symfony/css-selector/Exception/SyntaxErrorException.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Node\\AbstractNode' => $baseDir . '/vendor_prefixed/symfony/css-selector/Node/AbstractNode.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Node\\AttributeNode' => $baseDir . '/vendor_prefixed/symfony/css-selector/Node/AttributeNode.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Node\\ClassNode' => $baseDir . '/vendor_prefixed/symfony/css-selector/Node/ClassNode.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Node\\CombinedSelectorNode' => $baseDir . '/vendor_prefixed/symfony/css-selector/Node/CombinedSelectorNode.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Node\\ElementNode' => $baseDir . '/vendor_prefixed/symfony/css-selector/Node/ElementNode.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Node\\FunctionNode' => $baseDir . '/vendor_prefixed/symfony/css-selector/Node/FunctionNode.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Node\\HashNode' => $baseDir . '/vendor_prefixed/symfony/css-selector/Node/HashNode.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Node\\NegationNode' => $baseDir . '/vendor_prefixed/symfony/css-selector/Node/NegationNode.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Node\\NodeInterface' => $baseDir . '/vendor_prefixed/symfony/css-selector/Node/NodeInterface.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Node\\PseudoNode' => $baseDir . '/vendor_prefixed/symfony/css-selector/Node/PseudoNode.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Node\\SelectorNode' => $baseDir . '/vendor_prefixed/symfony/css-selector/Node/SelectorNode.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Node\\Specificity' => $baseDir . '/vendor_prefixed/symfony/css-selector/Node/Specificity.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\Handler\\CommentHandler' => $baseDir . '/vendor_prefixed/symfony/css-selector/Parser/Handler/CommentHandler.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' => $baseDir . '/vendor_prefixed/symfony/css-selector/Parser/Handler/HandlerInterface.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\Handler\\HashHandler' => $baseDir . '/vendor_prefixed/symfony/css-selector/Parser/Handler/HashHandler.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\Handler\\IdentifierHandler' => $baseDir . '/vendor_prefixed/symfony/css-selector/Parser/Handler/IdentifierHandler.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\Handler\\NumberHandler' => $baseDir . '/vendor_prefixed/symfony/css-selector/Parser/Handler/NumberHandler.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\Handler\\StringHandler' => $baseDir . '/vendor_prefixed/symfony/css-selector/Parser/Handler/StringHandler.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\Handler\\WhitespaceHandler' => $baseDir . '/vendor_prefixed/symfony/css-selector/Parser/Handler/WhitespaceHandler.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\Parser' => $baseDir . '/vendor_prefixed/symfony/css-selector/Parser/Parser.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\ParserInterface' => $baseDir . '/vendor_prefixed/symfony/css-selector/Parser/ParserInterface.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\Reader' => $baseDir . '/vendor_prefixed/symfony/css-selector/Parser/Reader.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\Shortcut\\ClassParser' => $baseDir . '/vendor_prefixed/symfony/css-selector/Parser/Shortcut/ClassParser.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\Shortcut\\ElementParser' => $baseDir . '/vendor_prefixed/symfony/css-selector/Parser/Shortcut/ElementParser.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\Shortcut\\EmptyStringParser' => $baseDir . '/vendor_prefixed/symfony/css-selector/Parser/Shortcut/EmptyStringParser.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\Shortcut\\HashParser' => $baseDir . '/vendor_prefixed/symfony/css-selector/Parser/Shortcut/HashParser.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\Token' => $baseDir . '/vendor_prefixed/symfony/css-selector/Parser/Token.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\TokenStream' => $baseDir . '/vendor_prefixed/symfony/css-selector/Parser/TokenStream.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\Tokenizer\\Tokenizer' => $baseDir . '/vendor_prefixed/symfony/css-selector/Parser/Tokenizer/Tokenizer.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\Tokenizer\\TokenizerEscaping' => $baseDir . '/vendor_prefixed/symfony/css-selector/Parser/Tokenizer/TokenizerEscaping.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\Tokenizer\\TokenizerPatterns' => $baseDir . '/vendor_prefixed/symfony/css-selector/Parser/Tokenizer/TokenizerPatterns.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\CssSelectorConverterTest' => $baseDir . '/vendor_prefixed/symfony/css-selector/Tests/CssSelectorConverterTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Node\\AbstractNodeTest' => $baseDir . '/vendor_prefixed/symfony/css-selector/Tests/Node/AbstractNodeTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Node\\AttributeNodeTest' => $baseDir . '/vendor_prefixed/symfony/css-selector/Tests/Node/AttributeNodeTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Node\\ClassNodeTest' => $baseDir . '/vendor_prefixed/symfony/css-selector/Tests/Node/ClassNodeTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Node\\CombinedSelectorNodeTest' => $baseDir . '/vendor_prefixed/symfony/css-selector/Tests/Node/CombinedSelectorNodeTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Node\\ElementNodeTest' => $baseDir . '/vendor_prefixed/symfony/css-selector/Tests/Node/ElementNodeTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Node\\FunctionNodeTest' => $baseDir . '/vendor_prefixed/symfony/css-selector/Tests/Node/FunctionNodeTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Node\\HashNodeTest' => $baseDir . '/vendor_prefixed/symfony/css-selector/Tests/Node/HashNodeTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Node\\NegationNodeTest' => $baseDir . '/vendor_prefixed/symfony/css-selector/Tests/Node/NegationNodeTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Node\\PseudoNodeTest' => $baseDir . '/vendor_prefixed/symfony/css-selector/Tests/Node/PseudoNodeTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Node\\SelectorNodeTest' => $baseDir . '/vendor_prefixed/symfony/css-selector/Tests/Node/SelectorNodeTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Node\\SpecificityTest' => $baseDir . '/vendor_prefixed/symfony/css-selector/Tests/Node/SpecificityTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Parser\\Handler\\AbstractHandlerTest' => $baseDir . '/vendor_prefixed/symfony/css-selector/Tests/Parser/Handler/AbstractHandlerTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Parser\\Handler\\CommentHandlerTest' => $baseDir . '/vendor_prefixed/symfony/css-selector/Tests/Parser/Handler/CommentHandlerTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Parser\\Handler\\HashHandlerTest' => $baseDir . '/vendor_prefixed/symfony/css-selector/Tests/Parser/Handler/HashHandlerTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Parser\\Handler\\IdentifierHandlerTest' => $baseDir . '/vendor_prefixed/symfony/css-selector/Tests/Parser/Handler/IdentifierHandlerTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Parser\\Handler\\NumberHandlerTest' => $baseDir . '/vendor_prefixed/symfony/css-selector/Tests/Parser/Handler/NumberHandlerTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Parser\\Handler\\StringHandlerTest' => $baseDir . '/vendor_prefixed/symfony/css-selector/Tests/Parser/Handler/StringHandlerTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Parser\\Handler\\WhitespaceHandlerTest' => $baseDir . '/vendor_prefixed/symfony/css-selector/Tests/Parser/Handler/WhitespaceHandlerTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Parser\\ParserTest' => $baseDir . '/vendor_prefixed/symfony/css-selector/Tests/Parser/ParserTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Parser\\ReaderTest' => $baseDir . '/vendor_prefixed/symfony/css-selector/Tests/Parser/ReaderTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Parser\\Shortcut\\ClassParserTest' => $baseDir . '/vendor_prefixed/symfony/css-selector/Tests/Parser/Shortcut/ClassParserTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Parser\\Shortcut\\ElementParserTest' => $baseDir . '/vendor_prefixed/symfony/css-selector/Tests/Parser/Shortcut/ElementParserTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Parser\\Shortcut\\EmptyStringParserTest' => $baseDir . '/vendor_prefixed/symfony/css-selector/Tests/Parser/Shortcut/EmptyStringParserTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Parser\\Shortcut\\HashParserTest' => $baseDir . '/vendor_prefixed/symfony/css-selector/Tests/Parser/Shortcut/HashParserTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Parser\\TokenStreamTest' => $baseDir . '/vendor_prefixed/symfony/css-selector/Tests/Parser/TokenStreamTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\XPath\\TranslatorTest' => $baseDir . '/vendor_prefixed/symfony/css-selector/Tests/XPath/TranslatorTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\XPath\\Extension\\AbstractExtension' => $baseDir . '/vendor_prefixed/symfony/css-selector/XPath/Extension/AbstractExtension.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\XPath\\Extension\\AttributeMatchingExtension' => $baseDir . '/vendor_prefixed/symfony/css-selector/XPath/Extension/AttributeMatchingExtension.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\XPath\\Extension\\CombinationExtension' => $baseDir . '/vendor_prefixed/symfony/css-selector/XPath/Extension/CombinationExtension.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\XPath\\Extension\\ExtensionInterface' => $baseDir . '/vendor_prefixed/symfony/css-selector/XPath/Extension/ExtensionInterface.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\XPath\\Extension\\FunctionExtension' => $baseDir . '/vendor_prefixed/symfony/css-selector/XPath/Extension/FunctionExtension.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\XPath\\Extension\\HtmlExtension' => $baseDir . '/vendor_prefixed/symfony/css-selector/XPath/Extension/HtmlExtension.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\XPath\\Extension\\NodeExtension' => $baseDir . '/vendor_prefixed/symfony/css-selector/XPath/Extension/NodeExtension.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\XPath\\Extension\\PseudoClassExtension' => $baseDir . '/vendor_prefixed/symfony/css-selector/XPath/Extension/PseudoClassExtension.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\XPath\\Translator' => $baseDir . '/vendor_prefixed/symfony/css-selector/XPath/Translator.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\XPath\\TranslatorInterface' => $baseDir . '/vendor_prefixed/symfony/css-selector/XPath/TranslatorInterface.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\XPath\\XPathExpr' => $baseDir . '/vendor_prefixed/symfony/css-selector/XPath/XPathExpr.php',
|
||||
'WPForms\\Vendor\\TijsVerkoyen\\CssToInlineStyles\\CssToInlineStyles' => $baseDir . '/vendor_prefixed/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php',
|
||||
'WPForms\\Vendor\\TijsVerkoyen\\CssToInlineStyles\\Css\\Processor' => $baseDir . '/vendor_prefixed/tijsverkoyen/css-to-inline-styles/src/Css/Processor.php',
|
||||
'WPForms\\Vendor\\TijsVerkoyen\\CssToInlineStyles\\Css\\Property\\Processor' => $baseDir . '/vendor_prefixed/tijsverkoyen/css-to-inline-styles/src/Css/Property/Processor.php',
|
||||
'WPForms\\Vendor\\TijsVerkoyen\\CssToInlineStyles\\Css\\Property\\Property' => $baseDir . '/vendor_prefixed/tijsverkoyen/css-to-inline-styles/src/Css/Property/Property.php',
|
||||
'WPForms\\Vendor\\TijsVerkoyen\\CssToInlineStyles\\Css\\Rule\\Processor' => $baseDir . '/vendor_prefixed/tijsverkoyen/css-to-inline-styles/src/Css/Rule/Processor.php',
|
||||
'WPForms\\Vendor\\TijsVerkoyen\\CssToInlineStyles\\Css\\Rule\\Rule' => $baseDir . '/vendor_prefixed/tijsverkoyen/css-to-inline-styles/src/Css/Rule/Rule.php',
|
||||
'WPForms\\Vendor\\TrueBV\\Exception\\DomainOutOfBoundsException' => $baseDir . '/vendor_prefixed/true/punycode/src/Exception/DomainOutOfBoundsException.php',
|
||||
'WPForms\\Vendor\\TrueBV\\Exception\\LabelOutOfBoundsException' => $baseDir . '/vendor_prefixed/true/punycode/src/Exception/LabelOutOfBoundsException.php',
|
||||
'WPForms\\Vendor\\TrueBV\\Exception\\OutOfBoundsException' => $baseDir . '/vendor_prefixed/true/punycode/src/Exception/OutOfBoundsException.php',
|
||||
'WPForms\\Vendor\\TrueBV\\Punycode' => $baseDir . '/vendor_prefixed/true/punycode/src/Punycode.php',
|
||||
);
|
11
wp-content/plugins/wpforms-lite/vendor/composer/autoload_files.php
vendored
Normal file
11
wp-content/plugins/wpforms-lite/vendor/composer/autoload_files.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
// autoload_files.php @generated by Composer
|
||||
|
||||
$vendorDir = dirname(dirname(__FILE__));
|
||||
$baseDir = dirname($vendorDir);
|
||||
|
||||
return array(
|
||||
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => $vendorDir . '/symfony/polyfill-mbstring/bootstrap.php',
|
||||
'def43f6c87e4f8dfd0c9e1b1bab14fe8' => $vendorDir . '/symfony/polyfill-iconv/bootstrap.php',
|
||||
);
|
9
wp-content/plugins/wpforms-lite/vendor/composer/autoload_namespaces.php
vendored
Normal file
9
wp-content/plugins/wpforms-lite/vendor/composer/autoload_namespaces.php
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
// autoload_namespaces.php @generated by Composer
|
||||
|
||||
$vendorDir = dirname(dirname(__FILE__));
|
||||
$baseDir = dirname($vendorDir);
|
||||
|
||||
return array(
|
||||
);
|
18
wp-content/plugins/wpforms-lite/vendor/composer/autoload_psr4.php
vendored
Normal file
18
wp-content/plugins/wpforms-lite/vendor/composer/autoload_psr4.php
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
// autoload_psr4.php @generated by Composer
|
||||
|
||||
$vendorDir = dirname(dirname(__FILE__));
|
||||
$baseDir = dirname($vendorDir);
|
||||
|
||||
return array(
|
||||
'WPForms\\Tests\\Unit\\' => array($baseDir . '/tests/unit'),
|
||||
'WPForms\\Tests\\Integration\\' => array($baseDir . '/tests/integration'),
|
||||
'WPForms\\' => array($baseDir . '/src', $baseDir . '/src'),
|
||||
'TrueBV\\' => array($vendorDir . '/true/punycode/src'),
|
||||
'TijsVerkoyen\\CssToInlineStyles\\' => array($vendorDir . '/tijsverkoyen/css-to-inline-styles/src'),
|
||||
'Symfony\\Polyfill\\Mbstring\\' => array($vendorDir . '/symfony/polyfill-mbstring'),
|
||||
'Symfony\\Polyfill\\Iconv\\' => array($vendorDir . '/symfony/polyfill-iconv'),
|
||||
'Symfony\\Component\\CssSelector\\' => array($vendorDir . '/symfony/css-selector'),
|
||||
'Stripe\\' => array($vendorDir . '/stripe/stripe-php/lib'),
|
||||
);
|
73
wp-content/plugins/wpforms-lite/vendor/composer/autoload_real.php
vendored
Normal file
73
wp-content/plugins/wpforms-lite/vendor/composer/autoload_real.php
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
<?php
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInitb4819db6ac3adf440bb861aadbfcbf60
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
public static function loadClassLoader($class)
|
||||
{
|
||||
if ('Composer\Autoload\ClassLoader' === $class) {
|
||||
require __DIR__ . '/ClassLoader.php';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Composer\Autoload\ClassLoader
|
||||
*/
|
||||
public static function getLoader()
|
||||
{
|
||||
if (null !== self::$loader) {
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInitb4819db6ac3adf440bb861aadbfcbf60', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitb4819db6ac3adf440bb861aadbfcbf60', 'loadClassLoader'));
|
||||
|
||||
$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';
|
||||
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitb4819db6ac3adf440bb861aadbfcbf60::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);
|
||||
}
|
||||
}
|
||||
|
||||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInitb4819db6ac3adf440bb861aadbfcbf60::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequireb4819db6ac3adf440bb861aadbfcbf60($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
||||
|
||||
function composerRequireb4819db6ac3adf440bb861aadbfcbf60($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
require $file;
|
||||
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
}
|
||||
}
|
452
wp-content/plugins/wpforms-lite/vendor/composer/autoload_static.php
vendored
Normal file
452
wp-content/plugins/wpforms-lite/vendor/composer/autoload_static.php
vendored
Normal file
@@ -0,0 +1,452 @@
|
||||
<?php
|
||||
|
||||
// autoload_static.php @generated by Composer
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInitb4819db6ac3adf440bb861aadbfcbf60
|
||||
{
|
||||
public static $files = array (
|
||||
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
|
||||
'def43f6c87e4f8dfd0c9e1b1bab14fe8' => __DIR__ . '/..' . '/symfony/polyfill-iconv/bootstrap.php',
|
||||
);
|
||||
|
||||
public static $prefixLengthsPsr4 = array (
|
||||
'W' =>
|
||||
array (
|
||||
'WPForms\\Tests\\Unit\\' => 19,
|
||||
'WPForms\\Tests\\Integration\\' => 26,
|
||||
'WPForms\\' => 8,
|
||||
),
|
||||
'T' =>
|
||||
array (
|
||||
'TrueBV\\' => 7,
|
||||
'TijsVerkoyen\\CssToInlineStyles\\' => 31,
|
||||
),
|
||||
'S' =>
|
||||
array (
|
||||
'Symfony\\Polyfill\\Mbstring\\' => 26,
|
||||
'Symfony\\Polyfill\\Iconv\\' => 23,
|
||||
'Symfony\\Component\\CssSelector\\' => 30,
|
||||
'Stripe\\' => 7,
|
||||
),
|
||||
);
|
||||
|
||||
public static $prefixDirsPsr4 = array (
|
||||
'WPForms\\Tests\\Unit\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/../..' . '/tests/unit',
|
||||
),
|
||||
'WPForms\\Tests\\Integration\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/../..' . '/tests/integration',
|
||||
),
|
||||
'WPForms\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/../..' . '/src',
|
||||
1 => __DIR__ . '/../..' . '/src',
|
||||
),
|
||||
'TrueBV\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/true/punycode/src',
|
||||
),
|
||||
'TijsVerkoyen\\CssToInlineStyles\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/tijsverkoyen/css-to-inline-styles/src',
|
||||
),
|
||||
'Symfony\\Polyfill\\Mbstring\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/symfony/polyfill-mbstring',
|
||||
),
|
||||
'Symfony\\Polyfill\\Iconv\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/symfony/polyfill-iconv',
|
||||
),
|
||||
'Symfony\\Component\\CssSelector\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/symfony/css-selector',
|
||||
),
|
||||
'Stripe\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/stripe/stripe-php/lib',
|
||||
),
|
||||
);
|
||||
|
||||
public static $classMap = array (
|
||||
'WPForms\\Vendor\\Stripe\\Account' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Account.php',
|
||||
'WPForms\\Vendor\\Stripe\\AccountLink' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/AccountLink.php',
|
||||
'WPForms\\Vendor\\Stripe\\ApiOperations\\All' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/ApiOperations/All.php',
|
||||
'WPForms\\Vendor\\Stripe\\ApiOperations\\Create' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/ApiOperations/Create.php',
|
||||
'WPForms\\Vendor\\Stripe\\ApiOperations\\Delete' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/ApiOperations/Delete.php',
|
||||
'WPForms\\Vendor\\Stripe\\ApiOperations\\NestedResource' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/ApiOperations/NestedResource.php',
|
||||
'WPForms\\Vendor\\Stripe\\ApiOperations\\Request' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/ApiOperations/Request.php',
|
||||
'WPForms\\Vendor\\Stripe\\ApiOperations\\Retrieve' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/ApiOperations/Retrieve.php',
|
||||
'WPForms\\Vendor\\Stripe\\ApiOperations\\Search' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/ApiOperations/Search.php',
|
||||
'WPForms\\Vendor\\Stripe\\ApiOperations\\SingletonRetrieve' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/ApiOperations/SingletonRetrieve.php',
|
||||
'WPForms\\Vendor\\Stripe\\ApiOperations\\Update' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/ApiOperations/Update.php',
|
||||
'WPForms\\Vendor\\Stripe\\ApiRequestor' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/ApiRequestor.php',
|
||||
'WPForms\\Vendor\\Stripe\\ApiResource' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/ApiResource.php',
|
||||
'WPForms\\Vendor\\Stripe\\ApiResponse' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/ApiResponse.php',
|
||||
'WPForms\\Vendor\\Stripe\\ApplePayDomain' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/ApplePayDomain.php',
|
||||
'WPForms\\Vendor\\Stripe\\ApplicationFee' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/ApplicationFee.php',
|
||||
'WPForms\\Vendor\\Stripe\\ApplicationFeeRefund' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/ApplicationFeeRefund.php',
|
||||
'WPForms\\Vendor\\Stripe\\Apps\\Secret' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Apps/Secret.php',
|
||||
'WPForms\\Vendor\\Stripe\\Balance' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Balance.php',
|
||||
'WPForms\\Vendor\\Stripe\\BalanceTransaction' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/BalanceTransaction.php',
|
||||
'WPForms\\Vendor\\Stripe\\BankAccount' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/BankAccount.php',
|
||||
'WPForms\\Vendor\\Stripe\\BaseStripeClient' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/BaseStripeClient.php',
|
||||
'WPForms\\Vendor\\Stripe\\BaseStripeClientInterface' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/BaseStripeClientInterface.php',
|
||||
'WPForms\\Vendor\\Stripe\\BillingPortal\\Configuration' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/BillingPortal/Configuration.php',
|
||||
'WPForms\\Vendor\\Stripe\\BillingPortal\\Session' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/BillingPortal/Session.php',
|
||||
'WPForms\\Vendor\\Stripe\\Capability' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Capability.php',
|
||||
'WPForms\\Vendor\\Stripe\\Card' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Card.php',
|
||||
'WPForms\\Vendor\\Stripe\\CashBalance' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/CashBalance.php',
|
||||
'WPForms\\Vendor\\Stripe\\Charge' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Charge.php',
|
||||
'WPForms\\Vendor\\Stripe\\Checkout\\Session' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Checkout/Session.php',
|
||||
'WPForms\\Vendor\\Stripe\\Collection' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Collection.php',
|
||||
'WPForms\\Vendor\\Stripe\\CountrySpec' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/CountrySpec.php',
|
||||
'WPForms\\Vendor\\Stripe\\Coupon' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Coupon.php',
|
||||
'WPForms\\Vendor\\Stripe\\CreditNote' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/CreditNote.php',
|
||||
'WPForms\\Vendor\\Stripe\\CreditNoteLineItem' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/CreditNoteLineItem.php',
|
||||
'WPForms\\Vendor\\Stripe\\Customer' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Customer.php',
|
||||
'WPForms\\Vendor\\Stripe\\CustomerBalanceTransaction' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/CustomerBalanceTransaction.php',
|
||||
'WPForms\\Vendor\\Stripe\\CustomerCashBalanceTransaction' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/CustomerCashBalanceTransaction.php',
|
||||
'WPForms\\Vendor\\Stripe\\Discount' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Discount.php',
|
||||
'WPForms\\Vendor\\Stripe\\Dispute' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Dispute.php',
|
||||
'WPForms\\Vendor\\Stripe\\EphemeralKey' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/EphemeralKey.php',
|
||||
'WPForms\\Vendor\\Stripe\\ErrorObject' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/ErrorObject.php',
|
||||
'WPForms\\Vendor\\Stripe\\Event' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Event.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\ApiConnectionException' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Exception/ApiConnectionException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\ApiErrorException' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Exception/ApiErrorException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\AuthenticationException' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Exception/AuthenticationException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\BadMethodCallException' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Exception/BadMethodCallException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\CardException' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Exception/CardException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\ExceptionInterface' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Exception/ExceptionInterface.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\IdempotencyException' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Exception/IdempotencyException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\InvalidArgumentException' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Exception/InvalidArgumentException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\InvalidRequestException' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Exception/InvalidRequestException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\OAuth\\ExceptionInterface' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Exception/OAuth/ExceptionInterface.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\OAuth\\InvalidClientException' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Exception/OAuth/InvalidClientException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\OAuth\\InvalidGrantException' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Exception/OAuth/InvalidGrantException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\OAuth\\InvalidRequestException' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Exception/OAuth/InvalidRequestException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\OAuth\\InvalidScopeException' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Exception/OAuth/InvalidScopeException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\OAuth\\OAuthErrorException' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Exception/OAuth/OAuthErrorException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\OAuth\\UnknownOAuthErrorException' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Exception/OAuth/UnknownOAuthErrorException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\OAuth\\UnsupportedGrantTypeException' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Exception/OAuth/UnsupportedGrantTypeException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\OAuth\\UnsupportedResponseTypeException' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Exception/OAuth/UnsupportedResponseTypeException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\PermissionException' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Exception/PermissionException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\RateLimitException' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Exception/RateLimitException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\SignatureVerificationException' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Exception/SignatureVerificationException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\UnexpectedValueException' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Exception/UnexpectedValueException.php',
|
||||
'WPForms\\Vendor\\Stripe\\Exception\\UnknownApiErrorException' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Exception/UnknownApiErrorException.php',
|
||||
'WPForms\\Vendor\\Stripe\\ExchangeRate' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/ExchangeRate.php',
|
||||
'WPForms\\Vendor\\Stripe\\File' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/File.php',
|
||||
'WPForms\\Vendor\\Stripe\\FileLink' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/FileLink.php',
|
||||
'WPForms\\Vendor\\Stripe\\FinancialConnections\\Account' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/FinancialConnections/Account.php',
|
||||
'WPForms\\Vendor\\Stripe\\FinancialConnections\\AccountOwner' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/FinancialConnections/AccountOwner.php',
|
||||
'WPForms\\Vendor\\Stripe\\FinancialConnections\\AccountOwnership' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/FinancialConnections/AccountOwnership.php',
|
||||
'WPForms\\Vendor\\Stripe\\FinancialConnections\\Session' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/FinancialConnections/Session.php',
|
||||
'WPForms\\Vendor\\Stripe\\FundingInstructions' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/FundingInstructions.php',
|
||||
'WPForms\\Vendor\\Stripe\\HttpClient\\ClientInterface' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/HttpClient/ClientInterface.php',
|
||||
'WPForms\\Vendor\\Stripe\\HttpClient\\CurlClient' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/HttpClient/CurlClient.php',
|
||||
'WPForms\\Vendor\\Stripe\\HttpClient\\StreamingClientInterface' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/HttpClient/StreamingClientInterface.php',
|
||||
'WPForms\\Vendor\\Stripe\\Identity\\VerificationReport' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Identity/VerificationReport.php',
|
||||
'WPForms\\Vendor\\Stripe\\Identity\\VerificationSession' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Identity/VerificationSession.php',
|
||||
'WPForms\\Vendor\\Stripe\\Invoice' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Invoice.php',
|
||||
'WPForms\\Vendor\\Stripe\\InvoiceItem' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/InvoiceItem.php',
|
||||
'WPForms\\Vendor\\Stripe\\InvoiceLineItem' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/InvoiceLineItem.php',
|
||||
'WPForms\\Vendor\\Stripe\\Issuing\\Authorization' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Issuing/Authorization.php',
|
||||
'WPForms\\Vendor\\Stripe\\Issuing\\Card' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Issuing/Card.php',
|
||||
'WPForms\\Vendor\\Stripe\\Issuing\\CardDetails' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Issuing/CardDetails.php',
|
||||
'WPForms\\Vendor\\Stripe\\Issuing\\Cardholder' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Issuing/Cardholder.php',
|
||||
'WPForms\\Vendor\\Stripe\\Issuing\\Dispute' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Issuing/Dispute.php',
|
||||
'WPForms\\Vendor\\Stripe\\Issuing\\Transaction' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Issuing/Transaction.php',
|
||||
'WPForms\\Vendor\\Stripe\\LineItem' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/LineItem.php',
|
||||
'WPForms\\Vendor\\Stripe\\LoginLink' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/LoginLink.php',
|
||||
'WPForms\\Vendor\\Stripe\\Mandate' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Mandate.php',
|
||||
'WPForms\\Vendor\\Stripe\\OAuth' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/OAuth.php',
|
||||
'WPForms\\Vendor\\Stripe\\OAuthErrorObject' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/OAuthErrorObject.php',
|
||||
'WPForms\\Vendor\\Stripe\\PaymentIntent' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/PaymentIntent.php',
|
||||
'WPForms\\Vendor\\Stripe\\PaymentLink' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/PaymentLink.php',
|
||||
'WPForms\\Vendor\\Stripe\\PaymentMethod' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/PaymentMethod.php',
|
||||
'WPForms\\Vendor\\Stripe\\Payout' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Payout.php',
|
||||
'WPForms\\Vendor\\Stripe\\Person' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Person.php',
|
||||
'WPForms\\Vendor\\Stripe\\Plan' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Plan.php',
|
||||
'WPForms\\Vendor\\Stripe\\Price' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Price.php',
|
||||
'WPForms\\Vendor\\Stripe\\Product' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Product.php',
|
||||
'WPForms\\Vendor\\Stripe\\PromotionCode' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/PromotionCode.php',
|
||||
'WPForms\\Vendor\\Stripe\\Quote' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Quote.php',
|
||||
'WPForms\\Vendor\\Stripe\\Radar\\EarlyFraudWarning' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Radar/EarlyFraudWarning.php',
|
||||
'WPForms\\Vendor\\Stripe\\Radar\\ValueList' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Radar/ValueList.php',
|
||||
'WPForms\\Vendor\\Stripe\\Radar\\ValueListItem' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Radar/ValueListItem.php',
|
||||
'WPForms\\Vendor\\Stripe\\RecipientTransfer' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/RecipientTransfer.php',
|
||||
'WPForms\\Vendor\\Stripe\\Refund' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Refund.php',
|
||||
'WPForms\\Vendor\\Stripe\\Reporting\\ReportRun' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Reporting/ReportRun.php',
|
||||
'WPForms\\Vendor\\Stripe\\Reporting\\ReportType' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Reporting/ReportType.php',
|
||||
'WPForms\\Vendor\\Stripe\\RequestTelemetry' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/RequestTelemetry.php',
|
||||
'WPForms\\Vendor\\Stripe\\Review' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Review.php',
|
||||
'WPForms\\Vendor\\Stripe\\SearchResult' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/SearchResult.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\AbstractService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/AbstractService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\AbstractServiceFactory' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/AbstractServiceFactory.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\AccountLinkService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/AccountLinkService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\AccountService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/AccountService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\ApplePayDomainService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/ApplePayDomainService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\ApplicationFeeService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/ApplicationFeeService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Apps\\AppsServiceFactory' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Apps/AppsServiceFactory.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Apps\\SecretService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Apps/SecretService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\BalanceService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/BalanceService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\BalanceTransactionService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/BalanceTransactionService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\BillingPortal\\BillingPortalServiceFactory' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/BillingPortal/BillingPortalServiceFactory.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\BillingPortal\\ConfigurationService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/BillingPortal/ConfigurationService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\BillingPortal\\SessionService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/BillingPortal/SessionService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\ChargeService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/ChargeService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Checkout\\CheckoutServiceFactory' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Checkout/CheckoutServiceFactory.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Checkout\\SessionService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Checkout/SessionService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\CoreServiceFactory' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/CoreServiceFactory.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\CountrySpecService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/CountrySpecService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\CouponService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/CouponService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\CreditNoteService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/CreditNoteService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\CustomerService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/CustomerService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\DisputeService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/DisputeService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\EphemeralKeyService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/EphemeralKeyService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\EventService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/EventService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\ExchangeRateService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/ExchangeRateService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\FileLinkService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/FileLinkService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\FileService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/FileService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\FinancialConnections\\AccountService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/FinancialConnections/AccountService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\FinancialConnections\\FinancialConnectionsServiceFactory' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/FinancialConnections/FinancialConnectionsServiceFactory.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\FinancialConnections\\SessionService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/FinancialConnections/SessionService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Identity\\IdentityServiceFactory' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Identity/IdentityServiceFactory.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Identity\\VerificationReportService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Identity/VerificationReportService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Identity\\VerificationSessionService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Identity/VerificationSessionService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\InvoiceItemService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/InvoiceItemService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\InvoiceService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/InvoiceService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Issuing\\AuthorizationService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Issuing/AuthorizationService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Issuing\\CardService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Issuing/CardService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Issuing\\CardholderService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Issuing/CardholderService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Issuing\\DisputeService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Issuing/DisputeService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Issuing\\IssuingServiceFactory' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Issuing/IssuingServiceFactory.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Issuing\\TransactionService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Issuing/TransactionService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\MandateService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/MandateService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\OAuthService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/OAuthService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\PaymentIntentService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/PaymentIntentService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\PaymentLinkService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/PaymentLinkService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\PaymentMethodService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/PaymentMethodService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\PayoutService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/PayoutService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\PlanService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/PlanService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\PriceService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/PriceService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\ProductService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/ProductService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\PromotionCodeService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/PromotionCodeService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\QuoteService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/QuoteService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Radar\\EarlyFraudWarningService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Radar/EarlyFraudWarningService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Radar\\RadarServiceFactory' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Radar/RadarServiceFactory.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Radar\\ValueListItemService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Radar/ValueListItemService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Radar\\ValueListService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Radar/ValueListService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\RefundService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/RefundService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Reporting\\ReportRunService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Reporting/ReportRunService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Reporting\\ReportTypeService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Reporting/ReportTypeService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Reporting\\ReportingServiceFactory' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Reporting/ReportingServiceFactory.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\ReviewService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/ReviewService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\SetupAttemptService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/SetupAttemptService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\SetupIntentService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/SetupIntentService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\ShippingRateService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/ShippingRateService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Sigma\\ScheduledQueryRunService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Sigma/ScheduledQueryRunService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Sigma\\SigmaServiceFactory' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Sigma/SigmaServiceFactory.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\SourceService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/SourceService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\SubscriptionItemService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/SubscriptionItemService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\SubscriptionScheduleService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/SubscriptionScheduleService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\SubscriptionService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/SubscriptionService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TaxCodeService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/TaxCodeService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TaxRateService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/TaxRateService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Tax\\CalculationService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Tax/CalculationService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Tax\\SettingsService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Tax/SettingsService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Tax\\TaxServiceFactory' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Tax/TaxServiceFactory.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Tax\\TransactionService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Tax/TransactionService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Terminal\\ConfigurationService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Terminal/ConfigurationService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Terminal\\ConnectionTokenService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Terminal/ConnectionTokenService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Terminal\\LocationService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Terminal/LocationService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Terminal\\ReaderService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Terminal/ReaderService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Terminal\\TerminalServiceFactory' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Terminal/TerminalServiceFactory.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TestHelpers\\CustomerService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/TestHelpers/CustomerService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TestHelpers\\Issuing\\CardService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/TestHelpers/Issuing/CardService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TestHelpers\\Issuing\\IssuingServiceFactory' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/TestHelpers/Issuing/IssuingServiceFactory.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TestHelpers\\RefundService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/TestHelpers/RefundService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TestHelpers\\Terminal\\ReaderService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/TestHelpers/Terminal/ReaderService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TestHelpers\\Terminal\\TerminalServiceFactory' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/TestHelpers/Terminal/TerminalServiceFactory.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TestHelpers\\TestClockService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/TestHelpers/TestClockService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TestHelpers\\TestHelpersServiceFactory' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/TestHelpers/TestHelpersServiceFactory.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TestHelpers\\Treasury\\InboundTransferService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/TestHelpers/Treasury/InboundTransferService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TestHelpers\\Treasury\\OutboundPaymentService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/TestHelpers/Treasury/OutboundPaymentService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TestHelpers\\Treasury\\OutboundTransferService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/TestHelpers/Treasury/OutboundTransferService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TestHelpers\\Treasury\\ReceivedCreditService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/TestHelpers/Treasury/ReceivedCreditService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TestHelpers\\Treasury\\ReceivedDebitService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/TestHelpers/Treasury/ReceivedDebitService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TestHelpers\\Treasury\\TreasuryServiceFactory' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/TestHelpers/Treasury/TreasuryServiceFactory.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TokenService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/TokenService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TopupService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/TopupService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\TransferService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/TransferService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Treasury\\CreditReversalService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Treasury/CreditReversalService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Treasury\\DebitReversalService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Treasury/DebitReversalService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Treasury\\FinancialAccountService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Treasury/FinancialAccountService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Treasury\\InboundTransferService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Treasury/InboundTransferService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Treasury\\OutboundPaymentService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Treasury/OutboundPaymentService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Treasury\\OutboundTransferService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Treasury/OutboundTransferService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Treasury\\ReceivedCreditService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Treasury/ReceivedCreditService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Treasury\\ReceivedDebitService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Treasury/ReceivedDebitService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Treasury\\TransactionEntryService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Treasury/TransactionEntryService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Treasury\\TransactionService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Treasury/TransactionService.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\Treasury\\TreasuryServiceFactory' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/Treasury/TreasuryServiceFactory.php',
|
||||
'WPForms\\Vendor\\Stripe\\Service\\WebhookEndpointService' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Service/WebhookEndpointService.php',
|
||||
'WPForms\\Vendor\\Stripe\\SetupAttempt' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/SetupAttempt.php',
|
||||
'WPForms\\Vendor\\Stripe\\SetupIntent' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/SetupIntent.php',
|
||||
'WPForms\\Vendor\\Stripe\\ShippingRate' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/ShippingRate.php',
|
||||
'WPForms\\Vendor\\Stripe\\Sigma\\ScheduledQueryRun' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Sigma/ScheduledQueryRun.php',
|
||||
'WPForms\\Vendor\\Stripe\\SingletonApiResource' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/SingletonApiResource.php',
|
||||
'WPForms\\Vendor\\Stripe\\Source' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Source.php',
|
||||
'WPForms\\Vendor\\Stripe\\SourceTransaction' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/SourceTransaction.php',
|
||||
'WPForms\\Vendor\\Stripe\\Stripe' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Stripe.php',
|
||||
'WPForms\\Vendor\\Stripe\\StripeClient' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/StripeClient.php',
|
||||
'WPForms\\Vendor\\Stripe\\StripeClientInterface' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/StripeClientInterface.php',
|
||||
'WPForms\\Vendor\\Stripe\\StripeObject' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/StripeObject.php',
|
||||
'WPForms\\Vendor\\Stripe\\StripeStreamingClientInterface' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/StripeStreamingClientInterface.php',
|
||||
'WPForms\\Vendor\\Stripe\\Subscription' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Subscription.php',
|
||||
'WPForms\\Vendor\\Stripe\\SubscriptionItem' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/SubscriptionItem.php',
|
||||
'WPForms\\Vendor\\Stripe\\SubscriptionSchedule' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/SubscriptionSchedule.php',
|
||||
'WPForms\\Vendor\\Stripe\\TaxCode' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/TaxCode.php',
|
||||
'WPForms\\Vendor\\Stripe\\TaxId' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/TaxId.php',
|
||||
'WPForms\\Vendor\\Stripe\\TaxRate' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/TaxRate.php',
|
||||
'WPForms\\Vendor\\Stripe\\Tax\\Calculation' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Tax/Calculation.php',
|
||||
'WPForms\\Vendor\\Stripe\\Tax\\CalculationLineItem' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Tax/CalculationLineItem.php',
|
||||
'WPForms\\Vendor\\Stripe\\Tax\\Settings' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Tax/Settings.php',
|
||||
'WPForms\\Vendor\\Stripe\\Tax\\Transaction' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Tax/Transaction.php',
|
||||
'WPForms\\Vendor\\Stripe\\Tax\\TransactionLineItem' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Tax/TransactionLineItem.php',
|
||||
'WPForms\\Vendor\\Stripe\\Terminal\\Configuration' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Terminal/Configuration.php',
|
||||
'WPForms\\Vendor\\Stripe\\Terminal\\ConnectionToken' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Terminal/ConnectionToken.php',
|
||||
'WPForms\\Vendor\\Stripe\\Terminal\\Location' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Terminal/Location.php',
|
||||
'WPForms\\Vendor\\Stripe\\Terminal\\Reader' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Terminal/Reader.php',
|
||||
'WPForms\\Vendor\\Stripe\\TestHelpers\\TestClock' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/TestHelpers/TestClock.php',
|
||||
'WPForms\\Vendor\\Stripe\\Token' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Token.php',
|
||||
'WPForms\\Vendor\\Stripe\\Topup' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Topup.php',
|
||||
'WPForms\\Vendor\\Stripe\\Transfer' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Transfer.php',
|
||||
'WPForms\\Vendor\\Stripe\\TransferReversal' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/TransferReversal.php',
|
||||
'WPForms\\Vendor\\Stripe\\Treasury\\CreditReversal' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Treasury/CreditReversal.php',
|
||||
'WPForms\\Vendor\\Stripe\\Treasury\\DebitReversal' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Treasury/DebitReversal.php',
|
||||
'WPForms\\Vendor\\Stripe\\Treasury\\FinancialAccount' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Treasury/FinancialAccount.php',
|
||||
'WPForms\\Vendor\\Stripe\\Treasury\\FinancialAccountFeatures' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Treasury/FinancialAccountFeatures.php',
|
||||
'WPForms\\Vendor\\Stripe\\Treasury\\InboundTransfer' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Treasury/InboundTransfer.php',
|
||||
'WPForms\\Vendor\\Stripe\\Treasury\\OutboundPayment' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Treasury/OutboundPayment.php',
|
||||
'WPForms\\Vendor\\Stripe\\Treasury\\OutboundTransfer' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Treasury/OutboundTransfer.php',
|
||||
'WPForms\\Vendor\\Stripe\\Treasury\\ReceivedCredit' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Treasury/ReceivedCredit.php',
|
||||
'WPForms\\Vendor\\Stripe\\Treasury\\ReceivedDebit' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Treasury/ReceivedDebit.php',
|
||||
'WPForms\\Vendor\\Stripe\\Treasury\\Transaction' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Treasury/Transaction.php',
|
||||
'WPForms\\Vendor\\Stripe\\Treasury\\TransactionEntry' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Treasury/TransactionEntry.php',
|
||||
'WPForms\\Vendor\\Stripe\\UsageRecord' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/UsageRecord.php',
|
||||
'WPForms\\Vendor\\Stripe\\UsageRecordSummary' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/UsageRecordSummary.php',
|
||||
'WPForms\\Vendor\\Stripe\\Util\\ApiVersion' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Util/ApiVersion.php',
|
||||
'WPForms\\Vendor\\Stripe\\Util\\CaseInsensitiveArray' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Util/CaseInsensitiveArray.php',
|
||||
'WPForms\\Vendor\\Stripe\\Util\\DefaultLogger' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Util/DefaultLogger.php',
|
||||
'WPForms\\Vendor\\Stripe\\Util\\LoggerInterface' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Util/LoggerInterface.php',
|
||||
'WPForms\\Vendor\\Stripe\\Util\\ObjectTypes' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Util/ObjectTypes.php',
|
||||
'WPForms\\Vendor\\Stripe\\Util\\RandomGenerator' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Util/RandomGenerator.php',
|
||||
'WPForms\\Vendor\\Stripe\\Util\\RequestOptions' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Util/RequestOptions.php',
|
||||
'WPForms\\Vendor\\Stripe\\Util\\Set' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Util/Set.php',
|
||||
'WPForms\\Vendor\\Stripe\\Util\\Util' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Util/Util.php',
|
||||
'WPForms\\Vendor\\Stripe\\Webhook' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/Webhook.php',
|
||||
'WPForms\\Vendor\\Stripe\\WebhookEndpoint' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/WebhookEndpoint.php',
|
||||
'WPForms\\Vendor\\Stripe\\WebhookSignature' => __DIR__ . '/../..' . '/vendor_prefixed/stripe/stripe-php/lib/WebhookSignature.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\CssSelectorConverter' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/CssSelectorConverter.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Exception\\ExceptionInterface' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Exception/ExceptionInterface.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Exception\\ExpressionErrorException' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Exception/ExpressionErrorException.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Exception\\InternalErrorException' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Exception/InternalErrorException.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Exception\\ParseException' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Exception/ParseException.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Exception\\SyntaxErrorException' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Exception/SyntaxErrorException.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Node\\AbstractNode' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Node/AbstractNode.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Node\\AttributeNode' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Node/AttributeNode.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Node\\ClassNode' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Node/ClassNode.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Node\\CombinedSelectorNode' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Node/CombinedSelectorNode.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Node\\ElementNode' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Node/ElementNode.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Node\\FunctionNode' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Node/FunctionNode.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Node\\HashNode' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Node/HashNode.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Node\\NegationNode' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Node/NegationNode.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Node\\NodeInterface' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Node/NodeInterface.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Node\\PseudoNode' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Node/PseudoNode.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Node\\SelectorNode' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Node/SelectorNode.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Node\\Specificity' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Node/Specificity.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\Handler\\CommentHandler' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Parser/Handler/CommentHandler.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Parser/Handler/HandlerInterface.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\Handler\\HashHandler' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Parser/Handler/HashHandler.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\Handler\\IdentifierHandler' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Parser/Handler/IdentifierHandler.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\Handler\\NumberHandler' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Parser/Handler/NumberHandler.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\Handler\\StringHandler' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Parser/Handler/StringHandler.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\Handler\\WhitespaceHandler' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Parser/Handler/WhitespaceHandler.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\Parser' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Parser/Parser.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\ParserInterface' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Parser/ParserInterface.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\Reader' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Parser/Reader.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\Shortcut\\ClassParser' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Parser/Shortcut/ClassParser.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\Shortcut\\ElementParser' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Parser/Shortcut/ElementParser.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\Shortcut\\EmptyStringParser' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Parser/Shortcut/EmptyStringParser.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\Shortcut\\HashParser' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Parser/Shortcut/HashParser.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\Token' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Parser/Token.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\TokenStream' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Parser/TokenStream.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\Tokenizer\\Tokenizer' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Parser/Tokenizer/Tokenizer.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\Tokenizer\\TokenizerEscaping' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Parser/Tokenizer/TokenizerEscaping.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Parser\\Tokenizer\\TokenizerPatterns' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Parser/Tokenizer/TokenizerPatterns.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\CssSelectorConverterTest' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Tests/CssSelectorConverterTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Node\\AbstractNodeTest' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Tests/Node/AbstractNodeTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Node\\AttributeNodeTest' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Tests/Node/AttributeNodeTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Node\\ClassNodeTest' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Tests/Node/ClassNodeTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Node\\CombinedSelectorNodeTest' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Tests/Node/CombinedSelectorNodeTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Node\\ElementNodeTest' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Tests/Node/ElementNodeTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Node\\FunctionNodeTest' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Tests/Node/FunctionNodeTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Node\\HashNodeTest' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Tests/Node/HashNodeTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Node\\NegationNodeTest' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Tests/Node/NegationNodeTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Node\\PseudoNodeTest' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Tests/Node/PseudoNodeTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Node\\SelectorNodeTest' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Tests/Node/SelectorNodeTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Node\\SpecificityTest' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Tests/Node/SpecificityTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Parser\\Handler\\AbstractHandlerTest' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Tests/Parser/Handler/AbstractHandlerTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Parser\\Handler\\CommentHandlerTest' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Tests/Parser/Handler/CommentHandlerTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Parser\\Handler\\HashHandlerTest' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Tests/Parser/Handler/HashHandlerTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Parser\\Handler\\IdentifierHandlerTest' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Tests/Parser/Handler/IdentifierHandlerTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Parser\\Handler\\NumberHandlerTest' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Tests/Parser/Handler/NumberHandlerTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Parser\\Handler\\StringHandlerTest' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Tests/Parser/Handler/StringHandlerTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Parser\\Handler\\WhitespaceHandlerTest' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Tests/Parser/Handler/WhitespaceHandlerTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Parser\\ParserTest' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Tests/Parser/ParserTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Parser\\ReaderTest' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Tests/Parser/ReaderTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Parser\\Shortcut\\ClassParserTest' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Tests/Parser/Shortcut/ClassParserTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Parser\\Shortcut\\ElementParserTest' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Tests/Parser/Shortcut/ElementParserTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Parser\\Shortcut\\EmptyStringParserTest' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Tests/Parser/Shortcut/EmptyStringParserTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Parser\\Shortcut\\HashParserTest' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Tests/Parser/Shortcut/HashParserTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\Parser\\TokenStreamTest' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Tests/Parser/TokenStreamTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\Tests\\XPath\\TranslatorTest' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/Tests/XPath/TranslatorTest.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\XPath\\Extension\\AbstractExtension' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/XPath/Extension/AbstractExtension.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\XPath\\Extension\\AttributeMatchingExtension' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/XPath/Extension/AttributeMatchingExtension.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\XPath\\Extension\\CombinationExtension' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/XPath/Extension/CombinationExtension.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\XPath\\Extension\\ExtensionInterface' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/XPath/Extension/ExtensionInterface.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\XPath\\Extension\\FunctionExtension' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/XPath/Extension/FunctionExtension.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\XPath\\Extension\\HtmlExtension' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/XPath/Extension/HtmlExtension.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\XPath\\Extension\\NodeExtension' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/XPath/Extension/NodeExtension.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\XPath\\Extension\\PseudoClassExtension' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/XPath/Extension/PseudoClassExtension.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\XPath\\Translator' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/XPath/Translator.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\XPath\\TranslatorInterface' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/XPath/TranslatorInterface.php',
|
||||
'WPForms\\Vendor\\Symfony\\Component\\CssSelector\\XPath\\XPathExpr' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/css-selector/XPath/XPathExpr.php',
|
||||
'WPForms\\Vendor\\TijsVerkoyen\\CssToInlineStyles\\CssToInlineStyles' => __DIR__ . '/../..' . '/vendor_prefixed/tijsverkoyen/css-to-inline-styles/src/CssToInlineStyles.php',
|
||||
'WPForms\\Vendor\\TijsVerkoyen\\CssToInlineStyles\\Css\\Processor' => __DIR__ . '/../..' . '/vendor_prefixed/tijsverkoyen/css-to-inline-styles/src/Css/Processor.php',
|
||||
'WPForms\\Vendor\\TijsVerkoyen\\CssToInlineStyles\\Css\\Property\\Processor' => __DIR__ . '/../..' . '/vendor_prefixed/tijsverkoyen/css-to-inline-styles/src/Css/Property/Processor.php',
|
||||
'WPForms\\Vendor\\TijsVerkoyen\\CssToInlineStyles\\Css\\Property\\Property' => __DIR__ . '/../..' . '/vendor_prefixed/tijsverkoyen/css-to-inline-styles/src/Css/Property/Property.php',
|
||||
'WPForms\\Vendor\\TijsVerkoyen\\CssToInlineStyles\\Css\\Rule\\Processor' => __DIR__ . '/../..' . '/vendor_prefixed/tijsverkoyen/css-to-inline-styles/src/Css/Rule/Processor.php',
|
||||
'WPForms\\Vendor\\TijsVerkoyen\\CssToInlineStyles\\Css\\Rule\\Rule' => __DIR__ . '/../..' . '/vendor_prefixed/tijsverkoyen/css-to-inline-styles/src/Css/Rule/Rule.php',
|
||||
'WPForms\\Vendor\\TrueBV\\Exception\\DomainOutOfBoundsException' => __DIR__ . '/../..' . '/vendor_prefixed/true/punycode/src/Exception/DomainOutOfBoundsException.php',
|
||||
'WPForms\\Vendor\\TrueBV\\Exception\\LabelOutOfBoundsException' => __DIR__ . '/../..' . '/vendor_prefixed/true/punycode/src/Exception/LabelOutOfBoundsException.php',
|
||||
'WPForms\\Vendor\\TrueBV\\Exception\\OutOfBoundsException' => __DIR__ . '/../..' . '/vendor_prefixed/true/punycode/src/Exception/OutOfBoundsException.php',
|
||||
'WPForms\\Vendor\\TrueBV\\Punycode' => __DIR__ . '/../..' . '/vendor_prefixed/true/punycode/src/Punycode.php',
|
||||
);
|
||||
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitb4819db6ac3adf440bb861aadbfcbf60::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitb4819db6ac3adf440bb861aadbfcbf60::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitb4819db6ac3adf440bb861aadbfcbf60::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
}
|
104
wp-content/plugins/wpforms-lite/vendor/composer/installed.php
vendored
Normal file
104
wp-content/plugins/wpforms-lite/vendor/composer/installed.php
vendored
Normal file
@@ -0,0 +1,104 @@
|
||||
<?php return array(
|
||||
'root' => array(
|
||||
'name' => 'awesomemotive/wpforms',
|
||||
'pretty_version' => 'dev-develop',
|
||||
'version' => 'dev-develop',
|
||||
'reference' => 'a5e7bc4b6a8f076b9662b8333080b9c5912f181c',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../../',
|
||||
'aliases' => array(),
|
||||
'dev' => true,
|
||||
),
|
||||
'versions' => array(
|
||||
'awesomemotive/wpforms' => array(
|
||||
'pretty_version' => 'dev-develop',
|
||||
'version' => 'dev-develop',
|
||||
'reference' => 'a5e7bc4b6a8f076b9662b8333080b9c5912f181c',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../../',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'mk-j/php_xlsxwriter' => array(
|
||||
'pretty_version' => '0.39',
|
||||
'version' => '0.39.0.0',
|
||||
'reference' => '67541cff96eab25563aa7fcecba33e03368fa464',
|
||||
'type' => 'project',
|
||||
'install_path' => __DIR__ . '/../mk-j/php_xlsxwriter',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'roave/security-advisories' => array(
|
||||
'pretty_version' => 'dev-latest',
|
||||
'version' => 'dev-latest',
|
||||
'reference' => 'ed4318ac306a1a1d467d19c1a768ff17e2d454b1',
|
||||
'type' => 'metapackage',
|
||||
'install_path' => NULL,
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => true,
|
||||
),
|
||||
'stripe/stripe-php' => array(
|
||||
'pretty_version' => 'v13.6.0',
|
||||
'version' => '13.6.0.0',
|
||||
'reference' => '6863bd70637fa1e2c022eceec44b89b7687634a1',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../stripe/stripe-php',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'symfony/css-selector' => array(
|
||||
'pretty_version' => 'v3.3.6',
|
||||
'version' => '3.3.6.0',
|
||||
'reference' => '4d882dced7b995d5274293039370148e291808f2',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../symfony/css-selector',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'symfony/polyfill-iconv' => array(
|
||||
'pretty_version' => 'v1.18.1',
|
||||
'version' => '1.18.1.0',
|
||||
'reference' => '6c2f78eb8f5ab8eaea98f6d414a5915f2e0fce36',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../symfony/polyfill-iconv',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'symfony/polyfill-mbstring' => array(
|
||||
'pretty_version' => 'v1.18.1',
|
||||
'version' => '1.18.1.0',
|
||||
'reference' => 'a6977d63bf9a0ad4c65cd352709e230876f9904a',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../symfony/polyfill-mbstring',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'tijsverkoyen/css-to-inline-styles' => array(
|
||||
'pretty_version' => '2.2.3',
|
||||
'version' => '2.2.3.0',
|
||||
'reference' => 'b43b05cf43c1b6d849478965062b6ef73e223bb5',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../tijsverkoyen/css-to-inline-styles',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'true/punycode' => array(
|
||||
'pretty_version' => 'v2.1.1',
|
||||
'version' => '2.1.1.0',
|
||||
'reference' => 'a4d0c11a36dd7f4e7cd7096076cab6d3378a071e',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../true/punycode',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'woocommerce/action-scheduler' => array(
|
||||
'pretty_version' => '3.4.2',
|
||||
'version' => '3.4.2.0',
|
||||
'reference' => '7d8e830b6387410ccf11708194d3836f01cb2942',
|
||||
'type' => 'wordpress-plugin',
|
||||
'install_path' => __DIR__ . '/../woocommerce/action-scheduler',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
),
|
||||
);
|
26
wp-content/plugins/wpforms-lite/vendor/composer/platform_check.php
vendored
Normal file
26
wp-content/plugins/wpforms-lite/vendor/composer/platform_check.php
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
// platform_check.php @generated by Composer
|
||||
|
||||
$issues = array();
|
||||
|
||||
if (!(PHP_VERSION_ID >= 50303)) {
|
||||
$issues[] = 'Your Composer dependencies require a PHP version ">= 5.3.3". You are running ' . PHP_VERSION . '.';
|
||||
}
|
||||
|
||||
if ($issues) {
|
||||
if (!headers_sent()) {
|
||||
header('HTTP/1.1 500 Internal Server Error');
|
||||
}
|
||||
if (!ini_get('display_errors')) {
|
||||
if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
|
||||
fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL);
|
||||
} elseif (!headers_sent()) {
|
||||
echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL;
|
||||
}
|
||||
}
|
||||
trigger_error(
|
||||
'Composer detected issues in your platform: ' . implode(' ', $issues),
|
||||
E_USER_ERROR
|
||||
);
|
||||
}
|
741
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Iconv.php
vendored
Normal file
741
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Iconv.php
vendored
Normal file
@@ -0,0 +1,741 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Polyfill\Iconv;
|
||||
|
||||
/**
|
||||
* iconv implementation in pure PHP, UTF-8 centric.
|
||||
*
|
||||
* Implemented:
|
||||
* - iconv - Convert string to requested character encoding
|
||||
* - iconv_mime_decode - Decodes a MIME header field
|
||||
* - iconv_mime_decode_headers - Decodes multiple MIME header fields at once
|
||||
* - iconv_get_encoding - Retrieve internal configuration variables of iconv extension
|
||||
* - iconv_set_encoding - Set current setting for character encoding conversion
|
||||
* - iconv_mime_encode - Composes a MIME header field
|
||||
* - iconv_strlen - Returns the character count of string
|
||||
* - iconv_strpos - Finds position of first occurrence of a needle within a haystack
|
||||
* - iconv_strrpos - Finds the last occurrence of a needle within a haystack
|
||||
* - iconv_substr - Cut out part of a string
|
||||
*
|
||||
* Charsets available for conversion are defined by files
|
||||
* in the charset/ directory and by Iconv::$alias below.
|
||||
* You're welcome to send back any addition you make.
|
||||
*
|
||||
* @author Nicolas Grekas <p@tchwork.com>
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
final class Iconv
|
||||
{
|
||||
const ERROR_ILLEGAL_CHARACTER = 'iconv(): Detected an illegal character in input string';
|
||||
const ERROR_WRONG_CHARSET = 'iconv(): Wrong charset, conversion from `%s\' to `%s\' is not allowed';
|
||||
|
||||
public static $inputEncoding = 'utf-8';
|
||||
public static $outputEncoding = 'utf-8';
|
||||
public static $internalEncoding = 'utf-8';
|
||||
|
||||
private static $alias = array(
|
||||
'utf8' => 'utf-8',
|
||||
'ascii' => 'us-ascii',
|
||||
'tis-620' => 'iso-8859-11',
|
||||
'cp1250' => 'windows-1250',
|
||||
'cp1251' => 'windows-1251',
|
||||
'cp1252' => 'windows-1252',
|
||||
'cp1253' => 'windows-1253',
|
||||
'cp1254' => 'windows-1254',
|
||||
'cp1255' => 'windows-1255',
|
||||
'cp1256' => 'windows-1256',
|
||||
'cp1257' => 'windows-1257',
|
||||
'cp1258' => 'windows-1258',
|
||||
'shift-jis' => 'cp932',
|
||||
'shift_jis' => 'cp932',
|
||||
'latin1' => 'iso-8859-1',
|
||||
'latin2' => 'iso-8859-2',
|
||||
'latin3' => 'iso-8859-3',
|
||||
'latin4' => 'iso-8859-4',
|
||||
'latin5' => 'iso-8859-9',
|
||||
'latin6' => 'iso-8859-10',
|
||||
'latin7' => 'iso-8859-13',
|
||||
'latin8' => 'iso-8859-14',
|
||||
'latin9' => 'iso-8859-15',
|
||||
'latin10' => 'iso-8859-16',
|
||||
'iso8859-1' => 'iso-8859-1',
|
||||
'iso8859-2' => 'iso-8859-2',
|
||||
'iso8859-3' => 'iso-8859-3',
|
||||
'iso8859-4' => 'iso-8859-4',
|
||||
'iso8859-5' => 'iso-8859-5',
|
||||
'iso8859-6' => 'iso-8859-6',
|
||||
'iso8859-7' => 'iso-8859-7',
|
||||
'iso8859-8' => 'iso-8859-8',
|
||||
'iso8859-9' => 'iso-8859-9',
|
||||
'iso8859-10' => 'iso-8859-10',
|
||||
'iso8859-11' => 'iso-8859-11',
|
||||
'iso8859-12' => 'iso-8859-12',
|
||||
'iso8859-13' => 'iso-8859-13',
|
||||
'iso8859-14' => 'iso-8859-14',
|
||||
'iso8859-15' => 'iso-8859-15',
|
||||
'iso8859-16' => 'iso-8859-16',
|
||||
'iso_8859-1' => 'iso-8859-1',
|
||||
'iso_8859-2' => 'iso-8859-2',
|
||||
'iso_8859-3' => 'iso-8859-3',
|
||||
'iso_8859-4' => 'iso-8859-4',
|
||||
'iso_8859-5' => 'iso-8859-5',
|
||||
'iso_8859-6' => 'iso-8859-6',
|
||||
'iso_8859-7' => 'iso-8859-7',
|
||||
'iso_8859-8' => 'iso-8859-8',
|
||||
'iso_8859-9' => 'iso-8859-9',
|
||||
'iso_8859-10' => 'iso-8859-10',
|
||||
'iso_8859-11' => 'iso-8859-11',
|
||||
'iso_8859-12' => 'iso-8859-12',
|
||||
'iso_8859-13' => 'iso-8859-13',
|
||||
'iso_8859-14' => 'iso-8859-14',
|
||||
'iso_8859-15' => 'iso-8859-15',
|
||||
'iso_8859-16' => 'iso-8859-16',
|
||||
'iso88591' => 'iso-8859-1',
|
||||
'iso88592' => 'iso-8859-2',
|
||||
'iso88593' => 'iso-8859-3',
|
||||
'iso88594' => 'iso-8859-4',
|
||||
'iso88595' => 'iso-8859-5',
|
||||
'iso88596' => 'iso-8859-6',
|
||||
'iso88597' => 'iso-8859-7',
|
||||
'iso88598' => 'iso-8859-8',
|
||||
'iso88599' => 'iso-8859-9',
|
||||
'iso885910' => 'iso-8859-10',
|
||||
'iso885911' => 'iso-8859-11',
|
||||
'iso885912' => 'iso-8859-12',
|
||||
'iso885913' => 'iso-8859-13',
|
||||
'iso885914' => 'iso-8859-14',
|
||||
'iso885915' => 'iso-8859-15',
|
||||
'iso885916' => 'iso-8859-16',
|
||||
);
|
||||
private static $translitMap = array();
|
||||
private static $convertMap = array();
|
||||
private static $errorHandler;
|
||||
private static $lastError;
|
||||
|
||||
private static $ulenMask = array("\xC0" => 2, "\xD0" => 2, "\xE0" => 3, "\xF0" => 4);
|
||||
private static $isValidUtf8;
|
||||
|
||||
public static function iconv($inCharset, $outCharset, $str)
|
||||
{
|
||||
$str = (string) $str;
|
||||
if ('' === $str) {
|
||||
return '';
|
||||
}
|
||||
|
||||
// Prepare for //IGNORE and //TRANSLIT
|
||||
|
||||
$translit = $ignore = '';
|
||||
|
||||
$outCharset = strtolower($outCharset);
|
||||
$inCharset = strtolower($inCharset);
|
||||
|
||||
if ('' === $outCharset) {
|
||||
$outCharset = 'iso-8859-1';
|
||||
}
|
||||
if ('' === $inCharset) {
|
||||
$inCharset = 'iso-8859-1';
|
||||
}
|
||||
|
||||
do {
|
||||
$loop = false;
|
||||
|
||||
if ('//translit' === substr($outCharset, -10)) {
|
||||
$loop = $translit = true;
|
||||
$outCharset = substr($outCharset, 0, -10);
|
||||
}
|
||||
|
||||
if ('//ignore' === substr($outCharset, -8)) {
|
||||
$loop = $ignore = true;
|
||||
$outCharset = substr($outCharset, 0, -8);
|
||||
}
|
||||
} while ($loop);
|
||||
|
||||
do {
|
||||
$loop = false;
|
||||
|
||||
if ('//translit' === substr($inCharset, -10)) {
|
||||
$loop = true;
|
||||
$inCharset = substr($inCharset, 0, -10);
|
||||
}
|
||||
|
||||
if ('//ignore' === substr($inCharset, -8)) {
|
||||
$loop = true;
|
||||
$inCharset = substr($inCharset, 0, -8);
|
||||
}
|
||||
} while ($loop);
|
||||
|
||||
if (isset(self::$alias[$inCharset])) {
|
||||
$inCharset = self::$alias[$inCharset];
|
||||
}
|
||||
if (isset(self::$alias[$outCharset])) {
|
||||
$outCharset = self::$alias[$outCharset];
|
||||
}
|
||||
|
||||
// Load charset maps
|
||||
|
||||
if (('utf-8' !== $inCharset && !self::loadMap('from.', $inCharset, $inMap))
|
||||
|| ('utf-8' !== $outCharset && !self::loadMap('to.', $outCharset, $outMap))) {
|
||||
trigger_error(sprintf(self::ERROR_WRONG_CHARSET, $inCharset, $outCharset));
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
if ('utf-8' !== $inCharset) {
|
||||
// Convert input to UTF-8
|
||||
$result = '';
|
||||
if (self::mapToUtf8($result, $inMap, $str, $ignore)) {
|
||||
$str = $result;
|
||||
} else {
|
||||
$str = false;
|
||||
}
|
||||
self::$isValidUtf8 = true;
|
||||
} else {
|
||||
self::$isValidUtf8 = preg_match('//u', $str);
|
||||
|
||||
if (!self::$isValidUtf8 && !$ignore) {
|
||||
trigger_error(self::ERROR_ILLEGAL_CHARACTER);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
if ('utf-8' === $outCharset) {
|
||||
// UTF-8 validation
|
||||
$str = self::utf8ToUtf8($str, $ignore);
|
||||
}
|
||||
}
|
||||
|
||||
if ('utf-8' !== $outCharset && false !== $str) {
|
||||
// Convert output to UTF-8
|
||||
$result = '';
|
||||
if (self::mapFromUtf8($result, $outMap, $str, $ignore, $translit)) {
|
||||
return $result;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
return $str;
|
||||
}
|
||||
|
||||
public static function iconv_mime_decode_headers($str, $mode = 0, $charset = null)
|
||||
{
|
||||
if (null === $charset) {
|
||||
$charset = self::$internalEncoding;
|
||||
}
|
||||
|
||||
if (false !== strpos($str, "\r")) {
|
||||
$str = strtr(str_replace("\r\n", "\n", $str), "\r", "\n");
|
||||
}
|
||||
$str = explode("\n\n", $str, 2);
|
||||
|
||||
$headers = array();
|
||||
|
||||
$str = preg_split('/\n(?![ \t])/', $str[0]);
|
||||
foreach ($str as $str) {
|
||||
$str = self::iconv_mime_decode($str, $mode, $charset);
|
||||
if (false === $str) {
|
||||
return false;
|
||||
}
|
||||
$str = explode(':', $str, 2);
|
||||
|
||||
if (2 === \count($str)) {
|
||||
if (isset($headers[$str[0]])) {
|
||||
if (!\is_array($headers[$str[0]])) {
|
||||
$headers[$str[0]] = array($headers[$str[0]]);
|
||||
}
|
||||
$headers[$str[0]][] = ltrim($str[1]);
|
||||
} else {
|
||||
$headers[$str[0]] = ltrim($str[1]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $headers;
|
||||
}
|
||||
|
||||
public static function iconv_mime_decode($str, $mode = 0, $charset = null)
|
||||
{
|
||||
if (null === $charset) {
|
||||
$charset = self::$internalEncoding;
|
||||
}
|
||||
if (ICONV_MIME_DECODE_CONTINUE_ON_ERROR & $mode) {
|
||||
$charset .= '//IGNORE';
|
||||
}
|
||||
|
||||
if (false !== strpos($str, "\r")) {
|
||||
$str = strtr(str_replace("\r\n", "\n", $str), "\r", "\n");
|
||||
}
|
||||
$str = preg_split('/\n(?![ \t])/', rtrim($str), 2);
|
||||
$str = preg_replace('/[ \t]*\n[ \t]+/', ' ', rtrim($str[0]));
|
||||
$str = preg_split('/=\?([^?]+)\?([bqBQ])\?(.*?)\?=/', $str, -1, PREG_SPLIT_DELIM_CAPTURE);
|
||||
|
||||
$result = self::iconv('utf-8', $charset, $str[0]);
|
||||
if (false === $result) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$i = 1;
|
||||
$len = \count($str);
|
||||
|
||||
while ($i < $len) {
|
||||
$c = strtolower($str[$i]);
|
||||
if ((ICONV_MIME_DECODE_CONTINUE_ON_ERROR & $mode)
|
||||
&& 'utf-8' !== $c
|
||||
&& !isset(self::$alias[$c])
|
||||
&& !self::loadMap('from.', $c, $d)) {
|
||||
$d = false;
|
||||
} elseif ('B' === strtoupper($str[$i + 1])) {
|
||||
$d = base64_decode($str[$i + 2]);
|
||||
} else {
|
||||
$d = rawurldecode(strtr(str_replace('%', '%25', $str[$i + 2]), '=_', '% '));
|
||||
}
|
||||
|
||||
if (false !== $d) {
|
||||
if ('' !== $d) {
|
||||
if ('' === $d = self::iconv($c, $charset, $d)) {
|
||||
$str[$i + 3] = substr($str[$i + 3], 1);
|
||||
} else {
|
||||
$result .= $d;
|
||||
}
|
||||
}
|
||||
$d = self::iconv('utf-8', $charset, $str[$i + 3]);
|
||||
if ('' !== trim($d)) {
|
||||
$result .= $d;
|
||||
}
|
||||
} elseif (ICONV_MIME_DECODE_CONTINUE_ON_ERROR & $mode) {
|
||||
$result .= "=?{$str[$i]}?{$str[$i + 1]}?{$str[$i + 2]}?={$str[$i + 3]}";
|
||||
} else {
|
||||
$result = false;
|
||||
break;
|
||||
}
|
||||
|
||||
$i += 4;
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
public static function iconv_get_encoding($type = 'all')
|
||||
{
|
||||
switch ($type) {
|
||||
case 'input_encoding': return self::$inputEncoding;
|
||||
case 'output_encoding': return self::$outputEncoding;
|
||||
case 'internal_encoding': return self::$internalEncoding;
|
||||
}
|
||||
|
||||
return array(
|
||||
'input_encoding' => self::$inputEncoding,
|
||||
'output_encoding' => self::$outputEncoding,
|
||||
'internal_encoding' => self::$internalEncoding,
|
||||
);
|
||||
}
|
||||
|
||||
public static function iconv_set_encoding($type, $charset)
|
||||
{
|
||||
switch ($type) {
|
||||
case 'input_encoding': self::$inputEncoding = $charset; break;
|
||||
case 'output_encoding': self::$outputEncoding = $charset; break;
|
||||
case 'internal_encoding': self::$internalEncoding = $charset; break;
|
||||
|
||||
default: return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public static function iconv_mime_encode($fieldName, $fieldValue, $pref = null)
|
||||
{
|
||||
if (!\is_array($pref)) {
|
||||
$pref = array();
|
||||
}
|
||||
|
||||
$pref += array(
|
||||
'scheme' => 'B',
|
||||
'input-charset' => self::$internalEncoding,
|
||||
'output-charset' => self::$internalEncoding,
|
||||
'line-length' => 76,
|
||||
'line-break-chars' => "\r\n",
|
||||
);
|
||||
|
||||
if (preg_match('/[\x80-\xFF]/', $fieldName)) {
|
||||
$fieldName = '';
|
||||
}
|
||||
|
||||
$scheme = strtoupper(substr($pref['scheme'], 0, 1));
|
||||
$in = strtolower($pref['input-charset']);
|
||||
$out = strtolower($pref['output-charset']);
|
||||
|
||||
if ('utf-8' !== $in && false === $fieldValue = self::iconv($in, 'utf-8', $fieldValue)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
preg_match_all('/./us', $fieldValue, $chars);
|
||||
|
||||
$chars = isset($chars[0]) ? $chars[0] : array();
|
||||
|
||||
$lineBreak = (int) $pref['line-length'];
|
||||
$lineStart = "=?{$pref['output-charset']}?{$scheme}?";
|
||||
$lineLength = \strlen($fieldName) + 2 + \strlen($lineStart) + 2;
|
||||
$lineOffset = \strlen($lineStart) + 3;
|
||||
$lineData = '';
|
||||
|
||||
$fieldValue = array();
|
||||
|
||||
$Q = 'Q' === $scheme;
|
||||
|
||||
foreach ($chars as $c) {
|
||||
if ('utf-8' !== $out && false === $c = self::iconv('utf-8', $out, $c)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$o = $Q
|
||||
? $c = preg_replace_callback(
|
||||
'/[=_\?\x00-\x1F\x80-\xFF]/',
|
||||
array(__CLASS__, 'qpByteCallback'),
|
||||
$c
|
||||
)
|
||||
: base64_encode($lineData.$c);
|
||||
|
||||
if (isset($o[$lineBreak - $lineLength])) {
|
||||
if (!$Q) {
|
||||
$lineData = base64_encode($lineData);
|
||||
}
|
||||
$fieldValue[] = $lineStart.$lineData.'?=';
|
||||
$lineLength = $lineOffset;
|
||||
$lineData = '';
|
||||
}
|
||||
|
||||
$lineData .= $c;
|
||||
$Q && $lineLength += \strlen($c);
|
||||
}
|
||||
|
||||
if ('' !== $lineData) {
|
||||
if (!$Q) {
|
||||
$lineData = base64_encode($lineData);
|
||||
}
|
||||
$fieldValue[] = $lineStart.$lineData.'?=';
|
||||
}
|
||||
|
||||
return $fieldName.': '.implode($pref['line-break-chars'].' ', $fieldValue);
|
||||
}
|
||||
|
||||
public static function iconv_strlen($s, $encoding = null)
|
||||
{
|
||||
static $hasXml = null;
|
||||
if (null === $hasXml) {
|
||||
$hasXml = \extension_loaded('xml');
|
||||
}
|
||||
|
||||
if ($hasXml) {
|
||||
return self::strlen1($s, $encoding);
|
||||
}
|
||||
|
||||
return self::strlen2($s, $encoding);
|
||||
}
|
||||
|
||||
public static function strlen1($s, $encoding = null)
|
||||
{
|
||||
if (null === $encoding) {
|
||||
$encoding = self::$internalEncoding;
|
||||
}
|
||||
if (0 !== stripos($encoding, 'utf-8') && false === $s = self::iconv($encoding, 'utf-8', $s)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return \strlen(utf8_decode($s));
|
||||
}
|
||||
|
||||
public static function strlen2($s, $encoding = null)
|
||||
{
|
||||
if (null === $encoding) {
|
||||
$encoding = self::$internalEncoding;
|
||||
}
|
||||
if (0 !== stripos($encoding, 'utf-8') && false === $s = self::iconv($encoding, 'utf-8', $s)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$ulenMask = self::$ulenMask;
|
||||
|
||||
$i = 0;
|
||||
$j = 0;
|
||||
$len = \strlen($s);
|
||||
|
||||
while ($i < $len) {
|
||||
$u = $s[$i] & "\xF0";
|
||||
$i += isset($ulenMask[$u]) ? $ulenMask[$u] : 1;
|
||||
++$j;
|
||||
}
|
||||
|
||||
return $j;
|
||||
}
|
||||
|
||||
public static function iconv_strpos($haystack, $needle, $offset = 0, $encoding = null)
|
||||
{
|
||||
if (null === $encoding) {
|
||||
$encoding = self::$internalEncoding;
|
||||
}
|
||||
|
||||
if (0 !== stripos($encoding, 'utf-8')) {
|
||||
if (false === $haystack = self::iconv($encoding, 'utf-8', $haystack)) {
|
||||
return false;
|
||||
}
|
||||
if (false === $needle = self::iconv($encoding, 'utf-8', $needle)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if ($offset = (int) $offset) {
|
||||
$haystack = self::iconv_substr($haystack, $offset, 2147483647, 'utf-8');
|
||||
}
|
||||
$pos = strpos($haystack, $needle);
|
||||
|
||||
return false === $pos ? false : ($offset + ($pos ? self::iconv_strlen(substr($haystack, 0, $pos), 'utf-8') : 0));
|
||||
}
|
||||
|
||||
public static function iconv_strrpos($haystack, $needle, $encoding = null)
|
||||
{
|
||||
if (null === $encoding) {
|
||||
$encoding = self::$internalEncoding;
|
||||
}
|
||||
|
||||
if (0 !== stripos($encoding, 'utf-8')) {
|
||||
if (false === $haystack = self::iconv($encoding, 'utf-8', $haystack)) {
|
||||
return false;
|
||||
}
|
||||
if (false === $needle = self::iconv($encoding, 'utf-8', $needle)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
$pos = isset($needle[0]) ? strrpos($haystack, $needle) : false;
|
||||
|
||||
return false === $pos ? false : self::iconv_strlen($pos ? substr($haystack, 0, $pos) : $haystack, 'utf-8');
|
||||
}
|
||||
|
||||
public static function iconv_substr($s, $start, $length = 2147483647, $encoding = null)
|
||||
{
|
||||
if (null === $encoding) {
|
||||
$encoding = self::$internalEncoding;
|
||||
}
|
||||
if (0 !== stripos($encoding, 'utf-8')) {
|
||||
$encoding = null;
|
||||
} elseif (false === $s = self::iconv($encoding, 'utf-8', $s)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$s = (string) $s;
|
||||
$slen = self::iconv_strlen($s, 'utf-8');
|
||||
$start = (int) $start;
|
||||
|
||||
if (0 > $start) {
|
||||
$start += $slen;
|
||||
}
|
||||
if (0 > $start) {
|
||||
return false;
|
||||
}
|
||||
if ($start >= $slen) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$rx = $slen - $start;
|
||||
|
||||
if (0 > $length) {
|
||||
$length += $rx;
|
||||
}
|
||||
if (0 === $length) {
|
||||
return '';
|
||||
}
|
||||
if (0 > $length) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($length > $rx) {
|
||||
$length = $rx;
|
||||
}
|
||||
|
||||
$rx = '/^'.($start ? self::pregOffset($start) : '').'('.self::pregOffset($length).')/u';
|
||||
|
||||
$s = preg_match($rx, $s, $s) ? $s[1] : '';
|
||||
|
||||
if (null === $encoding) {
|
||||
return $s;
|
||||
}
|
||||
|
||||
return self::iconv('utf-8', $encoding, $s);
|
||||
}
|
||||
|
||||
private static function loadMap($type, $charset, &$map)
|
||||
{
|
||||
if (!isset(self::$convertMap[$type.$charset])) {
|
||||
if (false === $map = self::getData($type.$charset)) {
|
||||
if ('to.' === $type && self::loadMap('from.', $charset, $map)) {
|
||||
$map = array_flip($map);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
self::$convertMap[$type.$charset] = $map;
|
||||
} else {
|
||||
$map = self::$convertMap[$type.$charset];
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
private static function utf8ToUtf8($str, $ignore)
|
||||
{
|
||||
$ulenMask = self::$ulenMask;
|
||||
$valid = self::$isValidUtf8;
|
||||
|
||||
$u = $str;
|
||||
$i = $j = 0;
|
||||
$len = \strlen($str);
|
||||
|
||||
while ($i < $len) {
|
||||
if ($str[$i] < "\x80") {
|
||||
$u[$j++] = $str[$i++];
|
||||
} else {
|
||||
$ulen = $str[$i] & "\xF0";
|
||||
$ulen = isset($ulenMask[$ulen]) ? $ulenMask[$ulen] : 1;
|
||||
$uchr = substr($str, $i, $ulen);
|
||||
|
||||
if (1 === $ulen || !($valid || preg_match('/^.$/us', $uchr))) {
|
||||
if ($ignore) {
|
||||
++$i;
|
||||
continue;
|
||||
}
|
||||
|
||||
trigger_error(self::ERROR_ILLEGAL_CHARACTER);
|
||||
|
||||
return false;
|
||||
} else {
|
||||
$i += $ulen;
|
||||
}
|
||||
|
||||
$u[$j++] = $uchr[0];
|
||||
|
||||
isset($uchr[1]) && 0 !== ($u[$j++] = $uchr[1])
|
||||
&& isset($uchr[2]) && 0 !== ($u[$j++] = $uchr[2])
|
||||
&& isset($uchr[3]) && 0 !== ($u[$j++] = $uchr[3]);
|
||||
}
|
||||
}
|
||||
|
||||
return substr($u, 0, $j);
|
||||
}
|
||||
|
||||
private static function mapToUtf8(&$result, array $map, $str, $ignore)
|
||||
{
|
||||
$len = \strlen($str);
|
||||
for ($i = 0; $i < $len; ++$i) {
|
||||
if (isset($str[$i + 1], $map[$str[$i].$str[$i + 1]])) {
|
||||
$result .= $map[$str[$i].$str[++$i]];
|
||||
} elseif (isset($map[$str[$i]])) {
|
||||
$result .= $map[$str[$i]];
|
||||
} elseif (!$ignore) {
|
||||
trigger_error(self::ERROR_ILLEGAL_CHARACTER);
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
private static function mapFromUtf8(&$result, array $map, $str, $ignore, $translit)
|
||||
{
|
||||
$ulenMask = self::$ulenMask;
|
||||
$valid = self::$isValidUtf8;
|
||||
|
||||
if ($translit && !self::$translitMap) {
|
||||
self::$translitMap = self::getData('translit');
|
||||
}
|
||||
|
||||
$i = 0;
|
||||
$len = \strlen($str);
|
||||
|
||||
while ($i < $len) {
|
||||
if ($str[$i] < "\x80") {
|
||||
$uchr = $str[$i++];
|
||||
} else {
|
||||
$ulen = $str[$i] & "\xF0";
|
||||
$ulen = isset($ulenMask[$ulen]) ? $ulenMask[$ulen] : 1;
|
||||
$uchr = substr($str, $i, $ulen);
|
||||
|
||||
if ($ignore && (1 === $ulen || !($valid || preg_match('/^.$/us', $uchr)))) {
|
||||
++$i;
|
||||
continue;
|
||||
} else {
|
||||
$i += $ulen;
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($map[$uchr])) {
|
||||
$result .= $map[$uchr];
|
||||
} elseif ($translit) {
|
||||
if (isset(self::$translitMap[$uchr])) {
|
||||
$uchr = self::$translitMap[$uchr];
|
||||
} elseif ($uchr >= "\xC3\x80") {
|
||||
$uchr = \Normalizer::normalize($uchr, \Normalizer::NFD);
|
||||
|
||||
if ($uchr[0] < "\x80") {
|
||||
$uchr = $uchr[0];
|
||||
} elseif ($ignore) {
|
||||
continue;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
} elseif ($ignore) {
|
||||
continue;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
$str = $uchr.substr($str, $i);
|
||||
$len = \strlen($str);
|
||||
$i = 0;
|
||||
} elseif (!$ignore) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
private static function qpByteCallback(array $m)
|
||||
{
|
||||
return '='.strtoupper(dechex(\ord($m[0])));
|
||||
}
|
||||
|
||||
private static function pregOffset($offset)
|
||||
{
|
||||
$rx = array();
|
||||
$offset = (int) $offset;
|
||||
|
||||
while ($offset > 65535) {
|
||||
$rx[] = '.{65535}';
|
||||
$offset -= 65535;
|
||||
}
|
||||
|
||||
return implode('', $rx).'.{'.$offset.'}';
|
||||
}
|
||||
|
||||
private static function getData($file)
|
||||
{
|
||||
if (file_exists($file = __DIR__.'/Resources/charset/'.$file.'.php')) {
|
||||
return require $file;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
19
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/LICENSE
vendored
Normal file
19
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/LICENSE
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
Copyright (c) 2015-2019 Fabien Potencier
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is furnished
|
||||
to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
13719
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.big5.php
vendored
Normal file
13719
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.big5.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp037.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp037.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp1006.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp1006.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp1026.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp1026.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp424.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp424.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp437.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp437.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp500.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp500.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp737.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp737.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp775.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp775.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp850.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp850.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp852.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp852.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp855.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp855.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp856.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp856.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp857.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp857.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp860.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp860.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp861.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp861.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp862.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp862.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp863.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp863.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp864.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp864.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp865.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp865.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp866.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp866.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp869.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp869.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp874.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp874.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp875.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp875.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp932.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp932.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp936.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp936.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp949.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp949.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp950.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.cp950.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.iso-8859-1.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.iso-8859-1.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.iso-8859-10.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.iso-8859-10.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.iso-8859-11.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.iso-8859-11.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.iso-8859-13.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.iso-8859-13.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.iso-8859-14.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.iso-8859-14.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.iso-8859-15.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.iso-8859-15.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.iso-8859-16.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.iso-8859-16.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.iso-8859-2.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.iso-8859-2.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.iso-8859-3.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.iso-8859-3.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.iso-8859-4.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.iso-8859-4.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.iso-8859-5.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.iso-8859-5.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.iso-8859-6.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.iso-8859-6.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.iso-8859-7.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.iso-8859-7.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.iso-8859-8.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.iso-8859-8.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.iso-8859-9.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.iso-8859-9.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.koi8-r.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.koi8-r.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.koi8-u.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.koi8-u.php
vendored
Normal file
Binary file not shown.
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.us-ascii.php
vendored
Normal file
BIN
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/from.us-ascii.php
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4103
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/translit.php
vendored
Normal file
4103
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/Resources/charset/translit.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
84
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/bootstrap.php
vendored
Normal file
84
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-iconv/bootstrap.php
vendored
Normal file
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
use Symfony\Polyfill\Iconv as p;
|
||||
|
||||
if (extension_loaded('iconv')) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!defined('ICONV_IMPL')) {
|
||||
define('ICONV_IMPL', 'Symfony');
|
||||
}
|
||||
if (!defined('ICONV_VERSION')) {
|
||||
define('ICONV_VERSION', '1.0');
|
||||
}
|
||||
if (!defined('ICONV_MIME_DECODE_STRICT')) {
|
||||
define('ICONV_MIME_DECODE_STRICT', 1);
|
||||
}
|
||||
if (!defined('ICONV_MIME_DECODE_CONTINUE_ON_ERROR')) {
|
||||
define('ICONV_MIME_DECODE_CONTINUE_ON_ERROR', 2);
|
||||
}
|
||||
|
||||
if (!function_exists('iconv')) {
|
||||
function iconv($from, $to, $s) { return p\Iconv::iconv($from, $to, $s); }
|
||||
}
|
||||
if (!function_exists('iconv_get_encoding')) {
|
||||
function iconv_get_encoding($type = 'all') { return p\Iconv::iconv_get_encoding($type); }
|
||||
}
|
||||
if (!function_exists('iconv_set_encoding')) {
|
||||
function iconv_set_encoding($type, $charset) { return p\Iconv::iconv_set_encoding($type, $charset); }
|
||||
}
|
||||
if (!function_exists('iconv_mime_encode')) {
|
||||
function iconv_mime_encode($name, $value, $pref = null) { return p\Iconv::iconv_mime_encode($name, $value, $pref); }
|
||||
}
|
||||
if (!function_exists('iconv_mime_decode_headers')) {
|
||||
function iconv_mime_decode_headers($encodedHeaders, $mode = 0, $enc = null) { return p\Iconv::iconv_mime_decode_headers($encodedHeaders, $mode, $enc); }
|
||||
}
|
||||
|
||||
if (extension_loaded('mbstring')) {
|
||||
if (!function_exists('iconv_strlen')) {
|
||||
function iconv_strlen($s, $enc = null) { null === $enc and $enc = p\Iconv::$internalEncoding; return mb_strlen($s, $enc); }
|
||||
}
|
||||
if (!function_exists('iconv_strpos')) {
|
||||
function iconv_strpos($s, $needle, $offset = 0, $enc = null) { null === $enc and $enc = p\Iconv::$internalEncoding; return mb_strpos($s, $needle, $offset, $enc); }
|
||||
}
|
||||
if (!function_exists('iconv_strrpos')) {
|
||||
function iconv_strrpos($s, $needle, $enc = null) { null === $enc and $enc = p\Iconv::$internalEncoding; return mb_strrpos($s, $needle, 0, $enc); }
|
||||
}
|
||||
if (!function_exists('iconv_substr')) {
|
||||
function iconv_substr($s, $start, $length = 2147483647, $enc = null) { null === $enc and $enc = p\Iconv::$internalEncoding; return mb_substr($s, $start, $length, $enc); }
|
||||
}
|
||||
if (!function_exists('iconv_mime_decode')) {
|
||||
function iconv_mime_decode($encodedHeaders, $mode = 0, $enc = null) { null === $enc and $enc = p\Iconv::$internalEncoding; return mb_decode_mimeheader($encodedHeaders, $mode, $enc); }
|
||||
}
|
||||
} else {
|
||||
if (!function_exists('iconv_strlen')) {
|
||||
if (extension_loaded('xml')) {
|
||||
function iconv_strlen($s, $enc = null) { return p\Iconv::strlen1($s, $enc); }
|
||||
} else {
|
||||
function iconv_strlen($s, $enc = null) { return p\Iconv::strlen2($s, $enc); }
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('iconv_strpos')) {
|
||||
function iconv_strpos($s, $needle, $offset = 0, $enc = null) { return p\Iconv::iconv_strpos($s, $needle, $offset, $enc); }
|
||||
}
|
||||
if (!function_exists('iconv_strrpos')) {
|
||||
function iconv_strrpos($s, $needle, $enc = null) { return p\Iconv::iconv_strrpos($s, $needle, $enc); }
|
||||
}
|
||||
if (!function_exists('iconv_substr')) {
|
||||
function iconv_substr($s, $start, $length = 2147483647, $enc = null) { return p\Iconv::iconv_substr($s, $start, $length, $enc); }
|
||||
}
|
||||
if (!function_exists('iconv_mime_decode')) {
|
||||
function iconv_mime_decode($encodedHeaders, $mode = 0, $enc = null) { return p\Iconv::iconv_mime_decode($encodedHeaders, $mode, $enc); }
|
||||
}
|
||||
}
|
19
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-mbstring/LICENSE
vendored
Normal file
19
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-mbstring/LICENSE
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
Copyright (c) 2015-2019 Fabien Potencier
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is furnished
|
||||
to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
847
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-mbstring/Mbstring.php
vendored
Normal file
847
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-mbstring/Mbstring.php
vendored
Normal file
@@ -0,0 +1,847 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Symfony\Polyfill\Mbstring;
|
||||
|
||||
/**
|
||||
* Partial mbstring implementation in PHP, iconv based, UTF-8 centric.
|
||||
*
|
||||
* Implemented:
|
||||
* - mb_chr - Returns a specific character from its Unicode code point
|
||||
* - mb_convert_encoding - Convert character encoding
|
||||
* - mb_convert_variables - Convert character code in variable(s)
|
||||
* - mb_decode_mimeheader - Decode string in MIME header field
|
||||
* - mb_encode_mimeheader - Encode string for MIME header XXX NATIVE IMPLEMENTATION IS REALLY BUGGED
|
||||
* - mb_decode_numericentity - Decode HTML numeric string reference to character
|
||||
* - mb_encode_numericentity - Encode character to HTML numeric string reference
|
||||
* - mb_convert_case - Perform case folding on a string
|
||||
* - mb_detect_encoding - Detect character encoding
|
||||
* - mb_get_info - Get internal settings of mbstring
|
||||
* - mb_http_input - Detect HTTP input character encoding
|
||||
* - mb_http_output - Set/Get HTTP output character encoding
|
||||
* - mb_internal_encoding - Set/Get internal character encoding
|
||||
* - mb_list_encodings - Returns an array of all supported encodings
|
||||
* - mb_ord - Returns the Unicode code point of a character
|
||||
* - mb_output_handler - Callback function converts character encoding in output buffer
|
||||
* - mb_scrub - Replaces ill-formed byte sequences with substitute characters
|
||||
* - mb_strlen - Get string length
|
||||
* - mb_strpos - Find position of first occurrence of string in a string
|
||||
* - mb_strrpos - Find position of last occurrence of a string in a string
|
||||
* - mb_str_split - Convert a string to an array
|
||||
* - mb_strtolower - Make a string lowercase
|
||||
* - mb_strtoupper - Make a string uppercase
|
||||
* - mb_substitute_character - Set/Get substitution character
|
||||
* - mb_substr - Get part of string
|
||||
* - mb_stripos - Finds position of first occurrence of a string within another, case insensitive
|
||||
* - mb_stristr - Finds first occurrence of a string within another, case insensitive
|
||||
* - mb_strrchr - Finds the last occurrence of a character in a string within another
|
||||
* - mb_strrichr - Finds the last occurrence of a character in a string within another, case insensitive
|
||||
* - mb_strripos - Finds position of last occurrence of a string within another, case insensitive
|
||||
* - mb_strstr - Finds first occurrence of a string within another
|
||||
* - mb_strwidth - Return width of string
|
||||
* - mb_substr_count - Count the number of substring occurrences
|
||||
*
|
||||
* Not implemented:
|
||||
* - mb_convert_kana - Convert "kana" one from another ("zen-kaku", "han-kaku" and more)
|
||||
* - mb_ereg_* - Regular expression with multibyte support
|
||||
* - mb_parse_str - Parse GET/POST/COOKIE data and set global variable
|
||||
* - mb_preferred_mime_name - Get MIME charset string
|
||||
* - mb_regex_encoding - Returns current encoding for multibyte regex as string
|
||||
* - mb_regex_set_options - Set/Get the default options for mbregex functions
|
||||
* - mb_send_mail - Send encoded mail
|
||||
* - mb_split - Split multibyte string using regular expression
|
||||
* - mb_strcut - Get part of string
|
||||
* - mb_strimwidth - Get truncated string with specified width
|
||||
*
|
||||
* @author Nicolas Grekas <p@tchwork.com>
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
final class Mbstring
|
||||
{
|
||||
const MB_CASE_FOLD = PHP_INT_MAX;
|
||||
|
||||
private static $encodingList = array('ASCII', 'UTF-8');
|
||||
private static $language = 'neutral';
|
||||
private static $internalEncoding = 'UTF-8';
|
||||
private static $caseFold = array(
|
||||
array('µ', 'ſ', "\xCD\x85", 'ς', "\xCF\x90", "\xCF\x91", "\xCF\x95", "\xCF\x96", "\xCF\xB0", "\xCF\xB1", "\xCF\xB5", "\xE1\xBA\x9B", "\xE1\xBE\xBE"),
|
||||
array('μ', 's', 'ι', 'σ', 'β', 'θ', 'φ', 'π', 'κ', 'ρ', 'ε', "\xE1\xB9\xA1", 'ι'),
|
||||
);
|
||||
|
||||
public static function mb_convert_encoding($s, $toEncoding, $fromEncoding = null)
|
||||
{
|
||||
if (\is_array($fromEncoding) || false !== strpos($fromEncoding, ',')) {
|
||||
$fromEncoding = self::mb_detect_encoding($s, $fromEncoding);
|
||||
} else {
|
||||
$fromEncoding = self::getEncoding($fromEncoding);
|
||||
}
|
||||
|
||||
$toEncoding = self::getEncoding($toEncoding);
|
||||
|
||||
if ('BASE64' === $fromEncoding) {
|
||||
$s = base64_decode($s);
|
||||
$fromEncoding = $toEncoding;
|
||||
}
|
||||
|
||||
if ('BASE64' === $toEncoding) {
|
||||
return base64_encode($s);
|
||||
}
|
||||
|
||||
if ('HTML-ENTITIES' === $toEncoding || 'HTML' === $toEncoding) {
|
||||
if ('HTML-ENTITIES' === $fromEncoding || 'HTML' === $fromEncoding) {
|
||||
$fromEncoding = 'Windows-1252';
|
||||
}
|
||||
if ('UTF-8' !== $fromEncoding) {
|
||||
$s = iconv($fromEncoding, 'UTF-8//IGNORE', $s);
|
||||
}
|
||||
|
||||
return preg_replace_callback('/[\x80-\xFF]+/', array(__CLASS__, 'html_encoding_callback'), $s);
|
||||
}
|
||||
|
||||
if ('HTML-ENTITIES' === $fromEncoding) {
|
||||
$s = html_entity_decode($s, ENT_COMPAT, 'UTF-8');
|
||||
$fromEncoding = 'UTF-8';
|
||||
}
|
||||
|
||||
return iconv($fromEncoding, $toEncoding.'//IGNORE', $s);
|
||||
}
|
||||
|
||||
public static function mb_convert_variables($toEncoding, $fromEncoding, &$a = null, &$b = null, &$c = null, &$d = null, &$e = null, &$f = null)
|
||||
{
|
||||
$vars = array(&$a, &$b, &$c, &$d, &$e, &$f);
|
||||
|
||||
$ok = true;
|
||||
array_walk_recursive($vars, function (&$v) use (&$ok, $toEncoding, $fromEncoding) {
|
||||
if (false === $v = Mbstring::mb_convert_encoding($v, $toEncoding, $fromEncoding)) {
|
||||
$ok = false;
|
||||
}
|
||||
});
|
||||
|
||||
return $ok ? $fromEncoding : false;
|
||||
}
|
||||
|
||||
public static function mb_decode_mimeheader($s)
|
||||
{
|
||||
return iconv_mime_decode($s, 2, self::$internalEncoding);
|
||||
}
|
||||
|
||||
public static function mb_encode_mimeheader($s, $charset = null, $transferEncoding = null, $linefeed = null, $indent = null)
|
||||
{
|
||||
trigger_error('mb_encode_mimeheader() is bugged. Please use iconv_mime_encode() instead', E_USER_WARNING);
|
||||
}
|
||||
|
||||
public static function mb_decode_numericentity($s, $convmap, $encoding = null)
|
||||
{
|
||||
if (null !== $s && !\is_scalar($s) && !(\is_object($s) && \method_exists($s, '__toString'))) {
|
||||
trigger_error('mb_decode_numericentity() expects parameter 1 to be string, '.\gettype($s).' given', E_USER_WARNING);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!\is_array($convmap) || !$convmap) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (null !== $encoding && !\is_scalar($encoding)) {
|
||||
trigger_error('mb_decode_numericentity() expects parameter 3 to be string, '.\gettype($s).' given', E_USER_WARNING);
|
||||
|
||||
return ''; // Instead of null (cf. mb_encode_numericentity).
|
||||
}
|
||||
|
||||
$s = (string) $s;
|
||||
if ('' === $s) {
|
||||
return '';
|
||||
}
|
||||
|
||||
$encoding = self::getEncoding($encoding);
|
||||
|
||||
if ('UTF-8' === $encoding) {
|
||||
$encoding = null;
|
||||
if (!preg_match('//u', $s)) {
|
||||
$s = @iconv('UTF-8', 'UTF-8//IGNORE', $s);
|
||||
}
|
||||
} else {
|
||||
$s = iconv($encoding, 'UTF-8//IGNORE', $s);
|
||||
}
|
||||
|
||||
$cnt = floor(\count($convmap) / 4) * 4;
|
||||
|
||||
for ($i = 0; $i < $cnt; $i += 4) {
|
||||
// collector_decode_htmlnumericentity ignores $convmap[$i + 3]
|
||||
$convmap[$i] += $convmap[$i + 2];
|
||||
$convmap[$i + 1] += $convmap[$i + 2];
|
||||
}
|
||||
|
||||
$s = preg_replace_callback('/&#(?:0*([0-9]+)|x0*([0-9a-fA-F]+))(?!&);?/', function (array $m) use ($cnt, $convmap) {
|
||||
$c = isset($m[2]) ? (int) hexdec($m[2]) : $m[1];
|
||||
for ($i = 0; $i < $cnt; $i += 4) {
|
||||
if ($c >= $convmap[$i] && $c <= $convmap[$i + 1]) {
|
||||
return Mbstring::mb_chr($c - $convmap[$i + 2]);
|
||||
}
|
||||
}
|
||||
|
||||
return $m[0];
|
||||
}, $s);
|
||||
|
||||
if (null === $encoding) {
|
||||
return $s;
|
||||
}
|
||||
|
||||
return iconv('UTF-8', $encoding.'//IGNORE', $s);
|
||||
}
|
||||
|
||||
public static function mb_encode_numericentity($s, $convmap, $encoding = null, $is_hex = false)
|
||||
{
|
||||
if (null !== $s && !\is_scalar($s) && !(\is_object($s) && \method_exists($s, '__toString'))) {
|
||||
trigger_error('mb_encode_numericentity() expects parameter 1 to be string, '.\gettype($s).' given', E_USER_WARNING);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!\is_array($convmap) || !$convmap) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (null !== $encoding && !\is_scalar($encoding)) {
|
||||
trigger_error('mb_encode_numericentity() expects parameter 3 to be string, '.\gettype($s).' given', E_USER_WARNING);
|
||||
|
||||
return null; // Instead of '' (cf. mb_decode_numericentity).
|
||||
}
|
||||
|
||||
if (null !== $is_hex && !\is_scalar($is_hex)) {
|
||||
trigger_error('mb_encode_numericentity() expects parameter 4 to be boolean, '.\gettype($s).' given', E_USER_WARNING);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
$s = (string) $s;
|
||||
if ('' === $s) {
|
||||
return '';
|
||||
}
|
||||
|
||||
$encoding = self::getEncoding($encoding);
|
||||
|
||||
if ('UTF-8' === $encoding) {
|
||||
$encoding = null;
|
||||
if (!preg_match('//u', $s)) {
|
||||
$s = @iconv('UTF-8', 'UTF-8//IGNORE', $s);
|
||||
}
|
||||
} else {
|
||||
$s = iconv($encoding, 'UTF-8//IGNORE', $s);
|
||||
}
|
||||
|
||||
static $ulenMask = array("\xC0" => 2, "\xD0" => 2, "\xE0" => 3, "\xF0" => 4);
|
||||
|
||||
$cnt = floor(\count($convmap) / 4) * 4;
|
||||
$i = 0;
|
||||
$len = \strlen($s);
|
||||
$result = '';
|
||||
|
||||
while ($i < $len) {
|
||||
$ulen = $s[$i] < "\x80" ? 1 : $ulenMask[$s[$i] & "\xF0"];
|
||||
$uchr = substr($s, $i, $ulen);
|
||||
$i += $ulen;
|
||||
$c = self::mb_ord($uchr);
|
||||
|
||||
for ($j = 0; $j < $cnt; $j += 4) {
|
||||
if ($c >= $convmap[$j] && $c <= $convmap[$j + 1]) {
|
||||
$cOffset = ($c + $convmap[$j + 2]) & $convmap[$j + 3];
|
||||
$result .= $is_hex ? sprintf('&#x%X;', $cOffset) : '&#'.$cOffset.';';
|
||||
continue 2;
|
||||
}
|
||||
}
|
||||
$result .= $uchr;
|
||||
}
|
||||
|
||||
if (null === $encoding) {
|
||||
return $result;
|
||||
}
|
||||
|
||||
return iconv('UTF-8', $encoding.'//IGNORE', $result);
|
||||
}
|
||||
|
||||
public static function mb_convert_case($s, $mode, $encoding = null)
|
||||
{
|
||||
$s = (string) $s;
|
||||
if ('' === $s) {
|
||||
return '';
|
||||
}
|
||||
|
||||
$encoding = self::getEncoding($encoding);
|
||||
|
||||
if ('UTF-8' === $encoding) {
|
||||
$encoding = null;
|
||||
if (!preg_match('//u', $s)) {
|
||||
$s = @iconv('UTF-8', 'UTF-8//IGNORE', $s);
|
||||
}
|
||||
} else {
|
||||
$s = iconv($encoding, 'UTF-8//IGNORE', $s);
|
||||
}
|
||||
|
||||
if (MB_CASE_TITLE == $mode) {
|
||||
static $titleRegexp = null;
|
||||
if (null === $titleRegexp) {
|
||||
$titleRegexp = self::getData('titleCaseRegexp');
|
||||
}
|
||||
$s = preg_replace_callback($titleRegexp, array(__CLASS__, 'title_case'), $s);
|
||||
} else {
|
||||
if (MB_CASE_UPPER == $mode) {
|
||||
static $upper = null;
|
||||
if (null === $upper) {
|
||||
$upper = self::getData('upperCase');
|
||||
}
|
||||
$map = $upper;
|
||||
} else {
|
||||
if (self::MB_CASE_FOLD === $mode) {
|
||||
$s = str_replace(self::$caseFold[0], self::$caseFold[1], $s);
|
||||
}
|
||||
|
||||
static $lower = null;
|
||||
if (null === $lower) {
|
||||
$lower = self::getData('lowerCase');
|
||||
}
|
||||
$map = $lower;
|
||||
}
|
||||
|
||||
static $ulenMask = array("\xC0" => 2, "\xD0" => 2, "\xE0" => 3, "\xF0" => 4);
|
||||
|
||||
$i = 0;
|
||||
$len = \strlen($s);
|
||||
|
||||
while ($i < $len) {
|
||||
$ulen = $s[$i] < "\x80" ? 1 : $ulenMask[$s[$i] & "\xF0"];
|
||||
$uchr = substr($s, $i, $ulen);
|
||||
$i += $ulen;
|
||||
|
||||
if (isset($map[$uchr])) {
|
||||
$uchr = $map[$uchr];
|
||||
$nlen = \strlen($uchr);
|
||||
|
||||
if ($nlen == $ulen) {
|
||||
$nlen = $i;
|
||||
do {
|
||||
$s[--$nlen] = $uchr[--$ulen];
|
||||
} while ($ulen);
|
||||
} else {
|
||||
$s = substr_replace($s, $uchr, $i - $ulen, $ulen);
|
||||
$len += $nlen - $ulen;
|
||||
$i += $nlen - $ulen;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null === $encoding) {
|
||||
return $s;
|
||||
}
|
||||
|
||||
return iconv('UTF-8', $encoding.'//IGNORE', $s);
|
||||
}
|
||||
|
||||
public static function mb_internal_encoding($encoding = null)
|
||||
{
|
||||
if (null === $encoding) {
|
||||
return self::$internalEncoding;
|
||||
}
|
||||
|
||||
$encoding = self::getEncoding($encoding);
|
||||
|
||||
if ('UTF-8' === $encoding || false !== @iconv($encoding, $encoding, ' ')) {
|
||||
self::$internalEncoding = $encoding;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function mb_language($lang = null)
|
||||
{
|
||||
if (null === $lang) {
|
||||
return self::$language;
|
||||
}
|
||||
|
||||
switch ($lang = strtolower($lang)) {
|
||||
case 'uni':
|
||||
case 'neutral':
|
||||
self::$language = $lang;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function mb_list_encodings()
|
||||
{
|
||||
return array('UTF-8');
|
||||
}
|
||||
|
||||
public static function mb_encoding_aliases($encoding)
|
||||
{
|
||||
switch (strtoupper($encoding)) {
|
||||
case 'UTF8':
|
||||
case 'UTF-8':
|
||||
return array('utf8');
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function mb_check_encoding($var = null, $encoding = null)
|
||||
{
|
||||
if (null === $encoding) {
|
||||
if (null === $var) {
|
||||
return false;
|
||||
}
|
||||
$encoding = self::$internalEncoding;
|
||||
}
|
||||
|
||||
return self::mb_detect_encoding($var, array($encoding)) || false !== @iconv($encoding, $encoding, $var);
|
||||
}
|
||||
|
||||
public static function mb_detect_encoding($str, $encodingList = null, $strict = false)
|
||||
{
|
||||
if (null === $encodingList) {
|
||||
$encodingList = self::$encodingList;
|
||||
} else {
|
||||
if (!\is_array($encodingList)) {
|
||||
$encodingList = array_map('trim', explode(',', $encodingList));
|
||||
}
|
||||
$encodingList = array_map('strtoupper', $encodingList);
|
||||
}
|
||||
|
||||
foreach ($encodingList as $enc) {
|
||||
switch ($enc) {
|
||||
case 'ASCII':
|
||||
if (!preg_match('/[\x80-\xFF]/', $str)) {
|
||||
return $enc;
|
||||
}
|
||||
break;
|
||||
|
||||
case 'UTF8':
|
||||
case 'UTF-8':
|
||||
if (preg_match('//u', $str)) {
|
||||
return 'UTF-8';
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
if (0 === strncmp($enc, 'ISO-8859-', 9)) {
|
||||
return $enc;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function mb_detect_order($encodingList = null)
|
||||
{
|
||||
if (null === $encodingList) {
|
||||
return self::$encodingList;
|
||||
}
|
||||
|
||||
if (!\is_array($encodingList)) {
|
||||
$encodingList = array_map('trim', explode(',', $encodingList));
|
||||
}
|
||||
$encodingList = array_map('strtoupper', $encodingList);
|
||||
|
||||
foreach ($encodingList as $enc) {
|
||||
switch ($enc) {
|
||||
default:
|
||||
if (strncmp($enc, 'ISO-8859-', 9)) {
|
||||
return false;
|
||||
}
|
||||
// no break
|
||||
case 'ASCII':
|
||||
case 'UTF8':
|
||||
case 'UTF-8':
|
||||
}
|
||||
}
|
||||
|
||||
self::$encodingList = $encodingList;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public static function mb_strlen($s, $encoding = null)
|
||||
{
|
||||
$encoding = self::getEncoding($encoding);
|
||||
if ('CP850' === $encoding || 'ASCII' === $encoding) {
|
||||
return \strlen($s);
|
||||
}
|
||||
|
||||
return @iconv_strlen($s, $encoding);
|
||||
}
|
||||
|
||||
public static function mb_strpos($haystack, $needle, $offset = 0, $encoding = null)
|
||||
{
|
||||
$encoding = self::getEncoding($encoding);
|
||||
if ('CP850' === $encoding || 'ASCII' === $encoding) {
|
||||
return strpos($haystack, $needle, $offset);
|
||||
}
|
||||
|
||||
$needle = (string) $needle;
|
||||
if ('' === $needle) {
|
||||
trigger_error(__METHOD__.': Empty delimiter', E_USER_WARNING);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
return iconv_strpos($haystack, $needle, $offset, $encoding);
|
||||
}
|
||||
|
||||
public static function mb_strrpos($haystack, $needle, $offset = 0, $encoding = null)
|
||||
{
|
||||
$encoding = self::getEncoding($encoding);
|
||||
if ('CP850' === $encoding || 'ASCII' === $encoding) {
|
||||
return strrpos($haystack, $needle, $offset);
|
||||
}
|
||||
|
||||
if ($offset != (int) $offset) {
|
||||
$offset = 0;
|
||||
} elseif ($offset = (int) $offset) {
|
||||
if ($offset < 0) {
|
||||
if (0 > $offset += self::mb_strlen($needle)) {
|
||||
$haystack = self::mb_substr($haystack, 0, $offset, $encoding);
|
||||
}
|
||||
$offset = 0;
|
||||
} else {
|
||||
$haystack = self::mb_substr($haystack, $offset, 2147483647, $encoding);
|
||||
}
|
||||
}
|
||||
|
||||
$pos = iconv_strrpos($haystack, $needle, $encoding);
|
||||
|
||||
return false !== $pos ? $offset + $pos : false;
|
||||
}
|
||||
|
||||
public static function mb_str_split($string, $split_length = 1, $encoding = null)
|
||||
{
|
||||
if (null !== $string && !\is_scalar($string) && !(\is_object($string) && \method_exists($string, '__toString'))) {
|
||||
trigger_error('mb_str_split() expects parameter 1 to be string, '.\gettype($string).' given', E_USER_WARNING);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
if (1 > $split_length = (int) $split_length) {
|
||||
trigger_error('The length of each segment must be greater than zero', E_USER_WARNING);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
if (null === $encoding) {
|
||||
$encoding = mb_internal_encoding();
|
||||
}
|
||||
|
||||
if ('UTF-8' === $encoding = self::getEncoding($encoding)) {
|
||||
$rx = '/(';
|
||||
while (65535 < $split_length) {
|
||||
$rx .= '.{65535}';
|
||||
$split_length -= 65535;
|
||||
}
|
||||
$rx .= '.{'.$split_length.'})/us';
|
||||
|
||||
return preg_split($rx, $string, null, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
|
||||
}
|
||||
|
||||
$result = array();
|
||||
$length = mb_strlen($string, $encoding);
|
||||
|
||||
for ($i = 0; $i < $length; $i += $split_length) {
|
||||
$result[] = mb_substr($string, $i, $split_length, $encoding);
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
public static function mb_strtolower($s, $encoding = null)
|
||||
{
|
||||
return self::mb_convert_case($s, MB_CASE_LOWER, $encoding);
|
||||
}
|
||||
|
||||
public static function mb_strtoupper($s, $encoding = null)
|
||||
{
|
||||
return self::mb_convert_case($s, MB_CASE_UPPER, $encoding);
|
||||
}
|
||||
|
||||
public static function mb_substitute_character($c = null)
|
||||
{
|
||||
if (0 === strcasecmp($c, 'none')) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return null !== $c ? false : 'none';
|
||||
}
|
||||
|
||||
public static function mb_substr($s, $start, $length = null, $encoding = null)
|
||||
{
|
||||
$encoding = self::getEncoding($encoding);
|
||||
if ('CP850' === $encoding || 'ASCII' === $encoding) {
|
||||
return (string) substr($s, $start, null === $length ? 2147483647 : $length);
|
||||
}
|
||||
|
||||
if ($start < 0) {
|
||||
$start = iconv_strlen($s, $encoding) + $start;
|
||||
if ($start < 0) {
|
||||
$start = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (null === $length) {
|
||||
$length = 2147483647;
|
||||
} elseif ($length < 0) {
|
||||
$length = iconv_strlen($s, $encoding) + $length - $start;
|
||||
if ($length < 0) {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
return (string) iconv_substr($s, $start, $length, $encoding);
|
||||
}
|
||||
|
||||
public static function mb_stripos($haystack, $needle, $offset = 0, $encoding = null)
|
||||
{
|
||||
$haystack = self::mb_convert_case($haystack, self::MB_CASE_FOLD, $encoding);
|
||||
$needle = self::mb_convert_case($needle, self::MB_CASE_FOLD, $encoding);
|
||||
|
||||
return self::mb_strpos($haystack, $needle, $offset, $encoding);
|
||||
}
|
||||
|
||||
public static function mb_stristr($haystack, $needle, $part = false, $encoding = null)
|
||||
{
|
||||
$pos = self::mb_stripos($haystack, $needle, 0, $encoding);
|
||||
|
||||
return self::getSubpart($pos, $part, $haystack, $encoding);
|
||||
}
|
||||
|
||||
public static function mb_strrchr($haystack, $needle, $part = false, $encoding = null)
|
||||
{
|
||||
$encoding = self::getEncoding($encoding);
|
||||
if ('CP850' === $encoding || 'ASCII' === $encoding) {
|
||||
return strrchr($haystack, $needle, $part);
|
||||
}
|
||||
$needle = self::mb_substr($needle, 0, 1, $encoding);
|
||||
$pos = iconv_strrpos($haystack, $needle, $encoding);
|
||||
|
||||
return self::getSubpart($pos, $part, $haystack, $encoding);
|
||||
}
|
||||
|
||||
public static function mb_strrichr($haystack, $needle, $part = false, $encoding = null)
|
||||
{
|
||||
$needle = self::mb_substr($needle, 0, 1, $encoding);
|
||||
$pos = self::mb_strripos($haystack, $needle, $encoding);
|
||||
|
||||
return self::getSubpart($pos, $part, $haystack, $encoding);
|
||||
}
|
||||
|
||||
public static function mb_strripos($haystack, $needle, $offset = 0, $encoding = null)
|
||||
{
|
||||
$haystack = self::mb_convert_case($haystack, self::MB_CASE_FOLD, $encoding);
|
||||
$needle = self::mb_convert_case($needle, self::MB_CASE_FOLD, $encoding);
|
||||
|
||||
return self::mb_strrpos($haystack, $needle, $offset, $encoding);
|
||||
}
|
||||
|
||||
public static function mb_strstr($haystack, $needle, $part = false, $encoding = null)
|
||||
{
|
||||
$pos = strpos($haystack, $needle);
|
||||
if (false === $pos) {
|
||||
return false;
|
||||
}
|
||||
if ($part) {
|
||||
return substr($haystack, 0, $pos);
|
||||
}
|
||||
|
||||
return substr($haystack, $pos);
|
||||
}
|
||||
|
||||
public static function mb_get_info($type = 'all')
|
||||
{
|
||||
$info = array(
|
||||
'internal_encoding' => self::$internalEncoding,
|
||||
'http_output' => 'pass',
|
||||
'http_output_conv_mimetypes' => '^(text/|application/xhtml\+xml)',
|
||||
'func_overload' => 0,
|
||||
'func_overload_list' => 'no overload',
|
||||
'mail_charset' => 'UTF-8',
|
||||
'mail_header_encoding' => 'BASE64',
|
||||
'mail_body_encoding' => 'BASE64',
|
||||
'illegal_chars' => 0,
|
||||
'encoding_translation' => 'Off',
|
||||
'language' => self::$language,
|
||||
'detect_order' => self::$encodingList,
|
||||
'substitute_character' => 'none',
|
||||
'strict_detection' => 'Off',
|
||||
);
|
||||
|
||||
if ('all' === $type) {
|
||||
return $info;
|
||||
}
|
||||
if (isset($info[$type])) {
|
||||
return $info[$type];
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function mb_http_input($type = '')
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function mb_http_output($encoding = null)
|
||||
{
|
||||
return null !== $encoding ? 'pass' === $encoding : 'pass';
|
||||
}
|
||||
|
||||
public static function mb_strwidth($s, $encoding = null)
|
||||
{
|
||||
$encoding = self::getEncoding($encoding);
|
||||
|
||||
if ('UTF-8' !== $encoding) {
|
||||
$s = iconv($encoding, 'UTF-8//IGNORE', $s);
|
||||
}
|
||||
|
||||
$s = preg_replace('/[\x{1100}-\x{115F}\x{2329}\x{232A}\x{2E80}-\x{303E}\x{3040}-\x{A4CF}\x{AC00}-\x{D7A3}\x{F900}-\x{FAFF}\x{FE10}-\x{FE19}\x{FE30}-\x{FE6F}\x{FF00}-\x{FF60}\x{FFE0}-\x{FFE6}\x{20000}-\x{2FFFD}\x{30000}-\x{3FFFD}]/u', '', $s, -1, $wide);
|
||||
|
||||
return ($wide << 1) + iconv_strlen($s, 'UTF-8');
|
||||
}
|
||||
|
||||
public static function mb_substr_count($haystack, $needle, $encoding = null)
|
||||
{
|
||||
return substr_count($haystack, $needle);
|
||||
}
|
||||
|
||||
public static function mb_output_handler($contents, $status)
|
||||
{
|
||||
return $contents;
|
||||
}
|
||||
|
||||
public static function mb_chr($code, $encoding = null)
|
||||
{
|
||||
if (0x80 > $code %= 0x200000) {
|
||||
$s = \chr($code);
|
||||
} elseif (0x800 > $code) {
|
||||
$s = \chr(0xC0 | $code >> 6).\chr(0x80 | $code & 0x3F);
|
||||
} elseif (0x10000 > $code) {
|
||||
$s = \chr(0xE0 | $code >> 12).\chr(0x80 | $code >> 6 & 0x3F).\chr(0x80 | $code & 0x3F);
|
||||
} else {
|
||||
$s = \chr(0xF0 | $code >> 18).\chr(0x80 | $code >> 12 & 0x3F).\chr(0x80 | $code >> 6 & 0x3F).\chr(0x80 | $code & 0x3F);
|
||||
}
|
||||
|
||||
if ('UTF-8' !== $encoding = self::getEncoding($encoding)) {
|
||||
$s = mb_convert_encoding($s, $encoding, 'UTF-8');
|
||||
}
|
||||
|
||||
return $s;
|
||||
}
|
||||
|
||||
public static function mb_ord($s, $encoding = null)
|
||||
{
|
||||
if ('UTF-8' !== $encoding = self::getEncoding($encoding)) {
|
||||
$s = mb_convert_encoding($s, 'UTF-8', $encoding);
|
||||
}
|
||||
|
||||
if (1 === \strlen($s)) {
|
||||
return \ord($s);
|
||||
}
|
||||
|
||||
$code = ($s = unpack('C*', substr($s, 0, 4))) ? $s[1] : 0;
|
||||
if (0xF0 <= $code) {
|
||||
return (($code - 0xF0) << 18) + (($s[2] - 0x80) << 12) + (($s[3] - 0x80) << 6) + $s[4] - 0x80;
|
||||
}
|
||||
if (0xE0 <= $code) {
|
||||
return (($code - 0xE0) << 12) + (($s[2] - 0x80) << 6) + $s[3] - 0x80;
|
||||
}
|
||||
if (0xC0 <= $code) {
|
||||
return (($code - 0xC0) << 6) + $s[2] - 0x80;
|
||||
}
|
||||
|
||||
return $code;
|
||||
}
|
||||
|
||||
private static function getSubpart($pos, $part, $haystack, $encoding)
|
||||
{
|
||||
if (false === $pos) {
|
||||
return false;
|
||||
}
|
||||
if ($part) {
|
||||
return self::mb_substr($haystack, 0, $pos, $encoding);
|
||||
}
|
||||
|
||||
return self::mb_substr($haystack, $pos, null, $encoding);
|
||||
}
|
||||
|
||||
private static function html_encoding_callback(array $m)
|
||||
{
|
||||
$i = 1;
|
||||
$entities = '';
|
||||
$m = unpack('C*', htmlentities($m[0], ENT_COMPAT, 'UTF-8'));
|
||||
|
||||
while (isset($m[$i])) {
|
||||
if (0x80 > $m[$i]) {
|
||||
$entities .= \chr($m[$i++]);
|
||||
continue;
|
||||
}
|
||||
if (0xF0 <= $m[$i]) {
|
||||
$c = (($m[$i++] - 0xF0) << 18) + (($m[$i++] - 0x80) << 12) + (($m[$i++] - 0x80) << 6) + $m[$i++] - 0x80;
|
||||
} elseif (0xE0 <= $m[$i]) {
|
||||
$c = (($m[$i++] - 0xE0) << 12) + (($m[$i++] - 0x80) << 6) + $m[$i++] - 0x80;
|
||||
} else {
|
||||
$c = (($m[$i++] - 0xC0) << 6) + $m[$i++] - 0x80;
|
||||
}
|
||||
|
||||
$entities .= '&#'.$c.';';
|
||||
}
|
||||
|
||||
return $entities;
|
||||
}
|
||||
|
||||
private static function title_case(array $s)
|
||||
{
|
||||
return self::mb_convert_case($s[1], MB_CASE_UPPER, 'UTF-8').self::mb_convert_case($s[2], MB_CASE_LOWER, 'UTF-8');
|
||||
}
|
||||
|
||||
private static function getData($file)
|
||||
{
|
||||
if (file_exists($file = __DIR__.'/Resources/unidata/'.$file.'.php')) {
|
||||
return require $file;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
private static function getEncoding($encoding)
|
||||
{
|
||||
if (null === $encoding) {
|
||||
return self::$internalEncoding;
|
||||
}
|
||||
|
||||
if ('UTF-8' === $encoding) {
|
||||
return 'UTF-8';
|
||||
}
|
||||
|
||||
$encoding = strtoupper($encoding);
|
||||
|
||||
if ('8BIT' === $encoding || 'BINARY' === $encoding) {
|
||||
return 'CP850';
|
||||
}
|
||||
|
||||
if ('UTF8' === $encoding) {
|
||||
return 'UTF-8';
|
||||
}
|
||||
|
||||
return $encoding;
|
||||
}
|
||||
}
|
1397
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php
vendored
Normal file
1397
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
1414
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php
vendored
Normal file
1414
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
141
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-mbstring/bootstrap.php
vendored
Normal file
141
wp-content/plugins/wpforms-lite/vendor/symfony/polyfill-mbstring/bootstrap.php
vendored
Normal file
@@ -0,0 +1,141 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
use Symfony\Polyfill\Mbstring as p;
|
||||
|
||||
if (!function_exists('mb_convert_encoding')) {
|
||||
function mb_convert_encoding($s, $to, $from = null) { return p\Mbstring::mb_convert_encoding($s, $to, $from); }
|
||||
}
|
||||
if (!function_exists('mb_decode_mimeheader')) {
|
||||
function mb_decode_mimeheader($s) { return p\Mbstring::mb_decode_mimeheader($s); }
|
||||
}
|
||||
if (!function_exists('mb_encode_mimeheader')) {
|
||||
function mb_encode_mimeheader($s, $charset = null, $transferEnc = null, $lf = null, $indent = null) { return p\Mbstring::mb_encode_mimeheader($s, $charset, $transferEnc, $lf, $indent); }
|
||||
}
|
||||
if (!function_exists('mb_decode_numericentity')) {
|
||||
function mb_decode_numericentity($s, $convmap, $enc = null) { return p\Mbstring::mb_decode_numericentity($s, $convmap, $enc); }
|
||||
}
|
||||
if (!function_exists('mb_encode_numericentity')) {
|
||||
function mb_encode_numericentity($s, $convmap, $enc = null, $is_hex = false) { return p\Mbstring::mb_encode_numericentity($s, $convmap, $enc, $is_hex); }
|
||||
}
|
||||
if (!function_exists('mb_convert_case')) {
|
||||
function mb_convert_case($s, $mode, $enc = null) { return p\Mbstring::mb_convert_case($s, $mode, $enc); }
|
||||
}
|
||||
if (!function_exists('mb_internal_encoding')) {
|
||||
function mb_internal_encoding($enc = null) { return p\Mbstring::mb_internal_encoding($enc); }
|
||||
}
|
||||
if (!function_exists('mb_language')) {
|
||||
function mb_language($lang = null) { return p\Mbstring::mb_language($lang); }
|
||||
}
|
||||
if (!function_exists('mb_list_encodings')) {
|
||||
function mb_list_encodings() { return p\Mbstring::mb_list_encodings(); }
|
||||
}
|
||||
if (!function_exists('mb_encoding_aliases')) {
|
||||
function mb_encoding_aliases($encoding) { return p\Mbstring::mb_encoding_aliases($encoding); }
|
||||
}
|
||||
if (!function_exists('mb_check_encoding')) {
|
||||
function mb_check_encoding($var = null, $encoding = null) { return p\Mbstring::mb_check_encoding($var, $encoding); }
|
||||
}
|
||||
if (!function_exists('mb_detect_encoding')) {
|
||||
function mb_detect_encoding($str, $encodingList = null, $strict = false) { return p\Mbstring::mb_detect_encoding($str, $encodingList, $strict); }
|
||||
}
|
||||
if (!function_exists('mb_detect_order')) {
|
||||
function mb_detect_order($encodingList = null) { return p\Mbstring::mb_detect_order($encodingList); }
|
||||
}
|
||||
if (!function_exists('mb_parse_str')) {
|
||||
function mb_parse_str($s, &$result = array()) { parse_str($s, $result); }
|
||||
}
|
||||
if (!function_exists('mb_strlen')) {
|
||||
function mb_strlen($s, $enc = null) { return p\Mbstring::mb_strlen($s, $enc); }
|
||||
}
|
||||
if (!function_exists('mb_strpos')) {
|
||||
function mb_strpos($s, $needle, $offset = 0, $enc = null) { return p\Mbstring::mb_strpos($s, $needle, $offset, $enc); }
|
||||
}
|
||||
if (!function_exists('mb_strtolower')) {
|
||||
function mb_strtolower($s, $enc = null) { return p\Mbstring::mb_strtolower($s, $enc); }
|
||||
}
|
||||
if (!function_exists('mb_strtoupper')) {
|
||||
function mb_strtoupper($s, $enc = null) { return p\Mbstring::mb_strtoupper($s, $enc); }
|
||||
}
|
||||
if (!function_exists('mb_substitute_character')) {
|
||||
function mb_substitute_character($char = null) { return p\Mbstring::mb_substitute_character($char); }
|
||||
}
|
||||
if (!function_exists('mb_substr')) {
|
||||
function mb_substr($s, $start, $length = 2147483647, $enc = null) { return p\Mbstring::mb_substr($s, $start, $length, $enc); }
|
||||
}
|
||||
if (!function_exists('mb_stripos')) {
|
||||
function mb_stripos($s, $needle, $offset = 0, $enc = null) { return p\Mbstring::mb_stripos($s, $needle, $offset, $enc); }
|
||||
}
|
||||
if (!function_exists('mb_stristr')) {
|
||||
function mb_stristr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_stristr($s, $needle, $part, $enc); }
|
||||
}
|
||||
if (!function_exists('mb_strrchr')) {
|
||||
function mb_strrchr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_strrchr($s, $needle, $part, $enc); }
|
||||
}
|
||||
if (!function_exists('mb_strrichr')) {
|
||||
function mb_strrichr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_strrichr($s, $needle, $part, $enc); }
|
||||
}
|
||||
if (!function_exists('mb_strripos')) {
|
||||
function mb_strripos($s, $needle, $offset = 0, $enc = null) { return p\Mbstring::mb_strripos($s, $needle, $offset, $enc); }
|
||||
}
|
||||
if (!function_exists('mb_strrpos')) {
|
||||
function mb_strrpos($s, $needle, $offset = 0, $enc = null) { return p\Mbstring::mb_strrpos($s, $needle, $offset, $enc); }
|
||||
}
|
||||
if (!function_exists('mb_strstr')) {
|
||||
function mb_strstr($s, $needle, $part = false, $enc = null) { return p\Mbstring::mb_strstr($s, $needle, $part, $enc); }
|
||||
}
|
||||
if (!function_exists('mb_get_info')) {
|
||||
function mb_get_info($type = 'all') { return p\Mbstring::mb_get_info($type); }
|
||||
}
|
||||
if (!function_exists('mb_http_output')) {
|
||||
function mb_http_output($enc = null) { return p\Mbstring::mb_http_output($enc); }
|
||||
}
|
||||
if (!function_exists('mb_strwidth')) {
|
||||
function mb_strwidth($s, $enc = null) { return p\Mbstring::mb_strwidth($s, $enc); }
|
||||
}
|
||||
if (!function_exists('mb_substr_count')) {
|
||||
function mb_substr_count($haystack, $needle, $enc = null) { return p\Mbstring::mb_substr_count($haystack, $needle, $enc); }
|
||||
}
|
||||
if (!function_exists('mb_output_handler')) {
|
||||
function mb_output_handler($contents, $status) { return p\Mbstring::mb_output_handler($contents, $status); }
|
||||
}
|
||||
if (!function_exists('mb_http_input')) {
|
||||
function mb_http_input($type = '') { return p\Mbstring::mb_http_input($type); }
|
||||
}
|
||||
if (!function_exists('mb_convert_variables')) {
|
||||
function mb_convert_variables($toEncoding, $fromEncoding, &$a = null, &$b = null, &$c = null, &$d = null, &$e = null, &$f = null) { return p\Mbstring::mb_convert_variables($toEncoding, $fromEncoding, $a, $b, $c, $d, $e, $f); }
|
||||
}
|
||||
if (!function_exists('mb_ord')) {
|
||||
function mb_ord($s, $enc = null) { return p\Mbstring::mb_ord($s, $enc); }
|
||||
}
|
||||
if (!function_exists('mb_chr')) {
|
||||
function mb_chr($code, $enc = null) { return p\Mbstring::mb_chr($code, $enc); }
|
||||
}
|
||||
if (!function_exists('mb_scrub')) {
|
||||
function mb_scrub($s, $enc = null) { $enc = null === $enc ? mb_internal_encoding() : $enc; return mb_convert_encoding($s, $enc, $enc); }
|
||||
}
|
||||
if (!function_exists('mb_str_split')) {
|
||||
function mb_str_split($string, $split_length = 1, $encoding = null) { return p\Mbstring::mb_str_split($string, $split_length, $encoding); }
|
||||
}
|
||||
|
||||
if (extension_loaded('mbstring')) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!defined('MB_CASE_UPPER')) {
|
||||
define('MB_CASE_UPPER', 0);
|
||||
}
|
||||
if (!defined('MB_CASE_LOWER')) {
|
||||
define('MB_CASE_LOWER', 1);
|
||||
}
|
||||
if (!defined('MB_CASE_TITLE')) {
|
||||
define('MB_CASE_TITLE', 2);
|
||||
}
|
65
wp-content/plugins/wpforms-lite/vendor/woocommerce/action-scheduler/action-scheduler.php
vendored
Normal file
65
wp-content/plugins/wpforms-lite/vendor/woocommerce/action-scheduler/action-scheduler.php
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
/**
|
||||
* Plugin Name: Action Scheduler
|
||||
* Plugin URI: https://actionscheduler.org
|
||||
* Description: A robust scheduling library for use in WordPress plugins.
|
||||
* Author: Automattic
|
||||
* Author URI: https://automattic.com/
|
||||
* Version: 3.4.2
|
||||
* License: GPLv3
|
||||
*
|
||||
* Copyright 2019 Automattic, Inc. (https://automattic.com/contact/)
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
* @package ActionScheduler
|
||||
*/
|
||||
|
||||
if ( ! function_exists( 'action_scheduler_register_3_dot_4_dot_0' ) && function_exists( 'add_action' ) ) {
|
||||
|
||||
if ( ! class_exists( 'ActionScheduler_Versions', false ) ) {
|
||||
require_once __DIR__ . '/classes/ActionScheduler_Versions.php';
|
||||
add_action( 'plugins_loaded', array( 'ActionScheduler_Versions', 'initialize_latest_version' ), 1, 0 );
|
||||
}
|
||||
|
||||
add_action( 'plugins_loaded', 'action_scheduler_register_3_dot_4_dot_0', 0, 0 );
|
||||
|
||||
/**
|
||||
* Registers this version of Action Scheduler.
|
||||
*/
|
||||
function action_scheduler_register_3_dot_4_dot_0() {
|
||||
$versions = ActionScheduler_Versions::instance();
|
||||
$versions->register( '3.4.0', 'action_scheduler_initialize_3_dot_4_dot_0' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes this version of Action Scheduler.
|
||||
*/
|
||||
function action_scheduler_initialize_3_dot_4_dot_0() {
|
||||
// A final safety check is required even here, because historic versions of Action Scheduler
|
||||
// followed a different pattern (in some unusual cases, we could reach this point and the
|
||||
// ActionScheduler class is already defined—so we need to guard against that).
|
||||
if ( ! class_exists( 'ActionScheduler', false ) ) {
|
||||
require_once __DIR__ . '/classes/abstracts/ActionScheduler.php';
|
||||
ActionScheduler::init( __FILE__ );
|
||||
}
|
||||
}
|
||||
|
||||
// Support usage in themes - load this version if no plugin has loaded a version yet.
|
||||
if ( did_action( 'plugins_loaded' ) && ! doing_action( 'plugins_loaded' ) && ! class_exists( 'ActionScheduler', false ) ) {
|
||||
action_scheduler_initialize_3_dot_4_dot_0();
|
||||
do_action( 'action_scheduler_pre_theme_init' );
|
||||
ActionScheduler_Versions::initialize_latest_version();
|
||||
}
|
||||
}
|
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Class ActionScheduler_ActionClaim
|
||||
*/
|
||||
class ActionScheduler_ActionClaim {
|
||||
private $id = '';
|
||||
private $action_ids = array();
|
||||
|
||||
public function __construct( $id, array $action_ids ) {
|
||||
$this->id = $id;
|
||||
$this->action_ids = $action_ids;
|
||||
}
|
||||
|
||||
public function get_id() {
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
public function get_actions() {
|
||||
return $this->action_ids;
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,179 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Class ActionScheduler_ActionFactory
|
||||
*/
|
||||
class ActionScheduler_ActionFactory {
|
||||
|
||||
/**
|
||||
* @param string $status The action's status in the data store
|
||||
* @param string $hook The hook to trigger when this action runs
|
||||
* @param array $args Args to pass to callbacks when the hook is triggered
|
||||
* @param ActionScheduler_Schedule $schedule The action's schedule
|
||||
* @param string $group A group to put the action in
|
||||
*
|
||||
* @return ActionScheduler_Action An instance of the stored action
|
||||
*/
|
||||
public function get_stored_action( $status, $hook, array $args = array(), ActionScheduler_Schedule $schedule = null, $group = '' ) {
|
||||
|
||||
switch ( $status ) {
|
||||
case ActionScheduler_Store::STATUS_PENDING :
|
||||
$action_class = 'ActionScheduler_Action';
|
||||
break;
|
||||
case ActionScheduler_Store::STATUS_CANCELED :
|
||||
$action_class = 'ActionScheduler_CanceledAction';
|
||||
if ( ! is_null( $schedule ) && ! is_a( $schedule, 'ActionScheduler_CanceledSchedule' ) && ! is_a( $schedule, 'ActionScheduler_NullSchedule' ) ) {
|
||||
$schedule = new ActionScheduler_CanceledSchedule( $schedule->get_date() );
|
||||
}
|
||||
break;
|
||||
default :
|
||||
$action_class = 'ActionScheduler_FinishedAction';
|
||||
break;
|
||||
}
|
||||
|
||||
$action_class = apply_filters( 'action_scheduler_stored_action_class', $action_class, $status, $hook, $args, $schedule, $group );
|
||||
|
||||
$action = new $action_class( $hook, $args, $schedule, $group );
|
||||
|
||||
/**
|
||||
* Allow 3rd party code to change the instantiated action for a given hook, args, schedule and group.
|
||||
*
|
||||
* @param ActionScheduler_Action $action The instantiated action.
|
||||
* @param string $hook The instantiated action's hook.
|
||||
* @param array $args The instantiated action's args.
|
||||
* @param ActionScheduler_Schedule $schedule The instantiated action's schedule.
|
||||
* @param string $group The instantiated action's group.
|
||||
*/
|
||||
return apply_filters( 'action_scheduler_stored_action_instance', $action, $hook, $args, $schedule, $group );
|
||||
}
|
||||
|
||||
/**
|
||||
* Enqueue an action to run one time, as soon as possible (rather a specific scheduled time).
|
||||
*
|
||||
* This method creates a new action with the NULLSchedule. This schedule maps to a MySQL datetime string of
|
||||
* 0000-00-00 00:00:00. This is done to create a psuedo "async action" type that is fully backward compatible.
|
||||
* Existing queries to claim actions claim by date, meaning actions scheduled for 0000-00-00 00:00:00 will
|
||||
* always be claimed prior to actions scheduled for a specific date. This makes sure that any async action is
|
||||
* given priority in queue processing. This has the added advantage of making sure async actions can be
|
||||
* claimed by both the existing WP Cron and WP CLI runners, as well as a new async request runner.
|
||||
*
|
||||
* @param string $hook The hook to trigger when this action runs
|
||||
* @param array $args Args to pass when the hook is triggered
|
||||
* @param string $group A group to put the action in
|
||||
*
|
||||
* @return int The ID of the stored action
|
||||
*/
|
||||
public function async( $hook, $args = array(), $group = '' ) {
|
||||
$schedule = new ActionScheduler_NullSchedule();
|
||||
$action = new ActionScheduler_Action( $hook, $args, $schedule, $group );
|
||||
return $this->store( $action );
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $hook The hook to trigger when this action runs
|
||||
* @param array $args Args to pass when the hook is triggered
|
||||
* @param int $when Unix timestamp when the action will run
|
||||
* @param string $group A group to put the action in
|
||||
*
|
||||
* @return int The ID of the stored action
|
||||
*/
|
||||
public function single( $hook, $args = array(), $when = null, $group = '' ) {
|
||||
$date = as_get_datetime_object( $when );
|
||||
$schedule = new ActionScheduler_SimpleSchedule( $date );
|
||||
$action = new ActionScheduler_Action( $hook, $args, $schedule, $group );
|
||||
return $this->store( $action );
|
||||
}
|
||||
|
||||
/**
|
||||
* Create the first instance of an action recurring on a given interval.
|
||||
*
|
||||
* @param string $hook The hook to trigger when this action runs
|
||||
* @param array $args Args to pass when the hook is triggered
|
||||
* @param int $first Unix timestamp for the first run
|
||||
* @param int $interval Seconds between runs
|
||||
* @param string $group A group to put the action in
|
||||
*
|
||||
* @return int The ID of the stored action
|
||||
*/
|
||||
public function recurring( $hook, $args = array(), $first = null, $interval = null, $group = '' ) {
|
||||
if ( empty($interval) ) {
|
||||
return $this->single( $hook, $args, $first, $group );
|
||||
}
|
||||
$date = as_get_datetime_object( $first );
|
||||
$schedule = new ActionScheduler_IntervalSchedule( $date, $interval );
|
||||
$action = new ActionScheduler_Action( $hook, $args, $schedule, $group );
|
||||
return $this->store( $action );
|
||||
}
|
||||
|
||||
/**
|
||||
* Create the first instance of an action recurring on a Cron schedule.
|
||||
*
|
||||
* @param string $hook The hook to trigger when this action runs
|
||||
* @param array $args Args to pass when the hook is triggered
|
||||
* @param int $base_timestamp The first instance of the action will be scheduled
|
||||
* to run at a time calculated after this timestamp matching the cron
|
||||
* expression. This can be used to delay the first instance of the action.
|
||||
* @param int $schedule A cron definition string
|
||||
* @param string $group A group to put the action in
|
||||
*
|
||||
* @return int The ID of the stored action
|
||||
*/
|
||||
public function cron( $hook, $args = array(), $base_timestamp = null, $schedule = null, $group = '' ) {
|
||||
if ( empty($schedule) ) {
|
||||
return $this->single( $hook, $args, $base_timestamp, $group );
|
||||
}
|
||||
$date = as_get_datetime_object( $base_timestamp );
|
||||
$cron = CronExpression::factory( $schedule );
|
||||
$schedule = new ActionScheduler_CronSchedule( $date, $cron );
|
||||
$action = new ActionScheduler_Action( $hook, $args, $schedule, $group );
|
||||
return $this->store( $action );
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a successive instance of a recurring or cron action.
|
||||
*
|
||||
* Importantly, the action will be rescheduled to run based on the current date/time.
|
||||
* That means when the action is scheduled to run in the past, the next scheduled date
|
||||
* will be pushed forward. For example, if a recurring action set to run every hour
|
||||
* was scheduled to run 5 seconds ago, it will be next scheduled for 1 hour in the
|
||||
* future, which is 1 hour and 5 seconds from when it was last scheduled to run.
|
||||
*
|
||||
* Alternatively, if the action is scheduled to run in the future, and is run early,
|
||||
* likely via manual intervention, then its schedule will change based on the time now.
|
||||
* For example, if a recurring action set to run every day, and is run 12 hours early,
|
||||
* it will run again in 24 hours, not 36 hours.
|
||||
*
|
||||
* This slippage is less of an issue with Cron actions, as the specific run time can
|
||||
* be set for them to run, e.g. 1am each day. In those cases, and entire period would
|
||||
* need to be missed before there was any change is scheduled, e.g. in the case of an
|
||||
* action scheduled for 1am each day, the action would need to run an entire day late.
|
||||
*
|
||||
* @param ActionScheduler_Action $action The existing action.
|
||||
*
|
||||
* @return string The ID of the stored action
|
||||
* @throws InvalidArgumentException If $action is not a recurring action.
|
||||
*/
|
||||
public function repeat( $action ) {
|
||||
$schedule = $action->get_schedule();
|
||||
$next = $schedule->get_next( as_get_datetime_object() );
|
||||
|
||||
if ( is_null( $next ) || ! $schedule->is_recurring() ) {
|
||||
throw new InvalidArgumentException( __( 'Invalid action - must be a recurring action.', 'action-scheduler' ) );
|
||||
}
|
||||
|
||||
$schedule_class = get_class( $schedule );
|
||||
$new_schedule = new $schedule( $next, $schedule->get_recurrence(), $schedule->get_first_date() );
|
||||
$new_action = new ActionScheduler_Action( $action->get_hook(), $action->get_args(), $new_schedule, $action->get_group() );
|
||||
return $this->store( $new_action );
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ActionScheduler_Action $action
|
||||
*
|
||||
* @return int The ID of the stored action
|
||||
*/
|
||||
protected function store( ActionScheduler_Action $action ) {
|
||||
$store = ActionScheduler_Store::instance();
|
||||
return $store->save_action( $action );
|
||||
}
|
||||
}
|
@@ -0,0 +1,154 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Class ActionScheduler_AdminView
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class ActionScheduler_AdminView extends ActionScheduler_AdminView_Deprecated {
|
||||
|
||||
private static $admin_view = NULL;
|
||||
|
||||
private static $screen_id = 'tools_page_action-scheduler';
|
||||
|
||||
/** @var ActionScheduler_ListTable */
|
||||
protected $list_table;
|
||||
|
||||
/**
|
||||
* @return ActionScheduler_AdminView
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public static function instance() {
|
||||
|
||||
if ( empty( self::$admin_view ) ) {
|
||||
$class = apply_filters('action_scheduler_admin_view_class', 'ActionScheduler_AdminView');
|
||||
self::$admin_view = new $class();
|
||||
}
|
||||
|
||||
return self::$admin_view;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function init() {
|
||||
if ( is_admin() && ( ! defined( 'DOING_AJAX' ) || false == DOING_AJAX ) ) {
|
||||
|
||||
if ( class_exists( 'WooCommerce' ) ) {
|
||||
add_action( 'woocommerce_admin_status_content_action-scheduler', array( $this, 'render_admin_ui' ) );
|
||||
add_action( 'woocommerce_system_status_report', array( $this, 'system_status_report' ) );
|
||||
add_filter( 'woocommerce_admin_status_tabs', array( $this, 'register_system_status_tab' ) );
|
||||
}
|
||||
|
||||
add_action( 'admin_menu', array( $this, 'register_menu' ) );
|
||||
|
||||
add_action( 'current_screen', array( $this, 'add_help_tabs' ) );
|
||||
}
|
||||
}
|
||||
|
||||
public function system_status_report() {
|
||||
$table = new ActionScheduler_wcSystemStatus( ActionScheduler::store() );
|
||||
$table->render();
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers action-scheduler into WooCommerce > System status.
|
||||
*
|
||||
* @param array $tabs An associative array of tab key => label.
|
||||
* @return array $tabs An associative array of tab key => label, including Action Scheduler's tabs
|
||||
*/
|
||||
public function register_system_status_tab( array $tabs ) {
|
||||
$tabs['action-scheduler'] = __( 'Scheduled Actions', 'action-scheduler' );
|
||||
|
||||
return $tabs;
|
||||
}
|
||||
|
||||
/**
|
||||
* Include Action Scheduler's administration under the Tools menu.
|
||||
*
|
||||
* A menu under the Tools menu is important for backward compatibility (as that's
|
||||
* where it started), and also provides more convenient access than the WooCommerce
|
||||
* System Status page, and for sites where WooCommerce isn't active.
|
||||
*/
|
||||
public function register_menu() {
|
||||
$hook_suffix = add_submenu_page(
|
||||
'tools.php',
|
||||
__( 'Scheduled Actions', 'action-scheduler' ),
|
||||
__( 'Scheduled Actions', 'action-scheduler' ),
|
||||
'manage_options',
|
||||
'action-scheduler',
|
||||
array( $this, 'render_admin_ui' )
|
||||
);
|
||||
add_action( 'load-' . $hook_suffix , array( $this, 'process_admin_ui' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Triggers processing of any pending actions.
|
||||
*/
|
||||
public function process_admin_ui() {
|
||||
$this->get_list_table();
|
||||
}
|
||||
|
||||
/**
|
||||
* Renders the Admin UI
|
||||
*/
|
||||
public function render_admin_ui() {
|
||||
$table = $this->get_list_table();
|
||||
$table->display_page();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the admin UI object and process any requested actions.
|
||||
*
|
||||
* @return ActionScheduler_ListTable
|
||||
*/
|
||||
protected function get_list_table() {
|
||||
if ( null === $this->list_table ) {
|
||||
$this->list_table = new ActionScheduler_ListTable( ActionScheduler::store(), ActionScheduler::logger(), ActionScheduler::runner() );
|
||||
$this->list_table->process_actions();
|
||||
}
|
||||
|
||||
return $this->list_table;
|
||||
}
|
||||
|
||||
/**
|
||||
* Provide more information about the screen and its data in the help tab.
|
||||
*/
|
||||
public function add_help_tabs() {
|
||||
$screen = get_current_screen();
|
||||
|
||||
if ( ! $screen || self::$screen_id != $screen->id ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$as_version = ActionScheduler_Versions::instance()->latest_version();
|
||||
$screen->add_help_tab(
|
||||
array(
|
||||
'id' => 'action_scheduler_about',
|
||||
'title' => __( 'About', 'action-scheduler' ),
|
||||
'content' =>
|
||||
'<h2>' . sprintf( __( 'About Action Scheduler %s', 'action-scheduler' ), $as_version ) . '</h2>' .
|
||||
'<p>' .
|
||||
__( 'Action Scheduler is a scalable, traceable job queue for background processing large sets of actions. Action Scheduler works by triggering an action hook to run at some time in the future. Scheduled actions can also be scheduled to run on a recurring schedule.', 'action-scheduler' ) .
|
||||
'</p>',
|
||||
)
|
||||
);
|
||||
|
||||
$screen->add_help_tab(
|
||||
array(
|
||||
'id' => 'action_scheduler_columns',
|
||||
'title' => __( 'Columns', 'action-scheduler' ),
|
||||
'content' =>
|
||||
'<h2>' . __( 'Scheduled Action Columns', 'action-scheduler' ) . '</h2>' .
|
||||
'<ul>' .
|
||||
sprintf( '<li><strong>%1$s</strong>: %2$s</li>', __( 'Hook', 'action-scheduler' ), __( 'Name of the action hook that will be triggered.', 'action-scheduler' ) ) .
|
||||
sprintf( '<li><strong>%1$s</strong>: %2$s</li>', __( 'Status', 'action-scheduler' ), __( 'Action statuses are Pending, Complete, Canceled, Failed', 'action-scheduler' ) ) .
|
||||
sprintf( '<li><strong>%1$s</strong>: %2$s</li>', __( 'Arguments', 'action-scheduler' ), __( 'Optional data array passed to the action hook.', 'action-scheduler' ) ) .
|
||||
sprintf( '<li><strong>%1$s</strong>: %2$s</li>', __( 'Group', 'action-scheduler' ), __( 'Optional action group.', 'action-scheduler' ) ) .
|
||||
sprintf( '<li><strong>%1$s</strong>: %2$s</li>', __( 'Recurrence', 'action-scheduler' ), __( 'The action\'s schedule frequency.', 'action-scheduler' ) ) .
|
||||
sprintf( '<li><strong>%1$s</strong>: %2$s</li>', __( 'Scheduled', 'action-scheduler' ), __( 'The date/time the action is/was scheduled to run.', 'action-scheduler' ) ) .
|
||||
sprintf( '<li><strong>%1$s</strong>: %2$s</li>', __( 'Log', 'action-scheduler' ), __( 'Activity log for the action.', 'action-scheduler' ) ) .
|
||||
'</ul>',
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
@@ -0,0 +1,97 @@
|
||||
<?php
|
||||
/**
|
||||
* ActionScheduler_AsyncRequest_QueueRunner
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
/**
|
||||
* ActionScheduler_AsyncRequest_QueueRunner class.
|
||||
*/
|
||||
class ActionScheduler_AsyncRequest_QueueRunner extends WP_Async_Request {
|
||||
|
||||
/**
|
||||
* Data store for querying actions
|
||||
*
|
||||
* @var ActionScheduler_Store
|
||||
* @access protected
|
||||
*/
|
||||
protected $store;
|
||||
|
||||
/**
|
||||
* Prefix for ajax hooks
|
||||
*
|
||||
* @var string
|
||||
* @access protected
|
||||
*/
|
||||
protected $prefix = 'as';
|
||||
|
||||
/**
|
||||
* Action for ajax hooks
|
||||
*
|
||||
* @var string
|
||||
* @access protected
|
||||
*/
|
||||
protected $action = 'async_request_queue_runner';
|
||||
|
||||
/**
|
||||
* Initiate new async request
|
||||
*/
|
||||
public function __construct( ActionScheduler_Store $store ) {
|
||||
parent::__construct();
|
||||
$this->store = $store;
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle async requests
|
||||
*
|
||||
* Run a queue, and maybe dispatch another async request to run another queue
|
||||
* if there are still pending actions after completing a queue in this request.
|
||||
*/
|
||||
protected function handle() {
|
||||
do_action( 'action_scheduler_run_queue', 'Async Request' ); // run a queue in the same way as WP Cron, but declare the Async Request context
|
||||
|
||||
$sleep_seconds = $this->get_sleep_seconds();
|
||||
|
||||
if ( $sleep_seconds ) {
|
||||
sleep( $sleep_seconds );
|
||||
}
|
||||
|
||||
$this->maybe_dispatch();
|
||||
}
|
||||
|
||||
/**
|
||||
* If the async request runner is needed and allowed to run, dispatch a request.
|
||||
*/
|
||||
public function maybe_dispatch() {
|
||||
if ( ! $this->allow() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->dispatch();
|
||||
ActionScheduler_QueueRunner::instance()->unhook_dispatch_async_request();
|
||||
}
|
||||
|
||||
/**
|
||||
* Only allow async requests when needed.
|
||||
*
|
||||
* Also allow 3rd party code to disable running actions via async requests.
|
||||
*/
|
||||
protected function allow() {
|
||||
|
||||
if ( ! has_action( 'action_scheduler_run_queue' ) || ActionScheduler::runner()->has_maximum_concurrent_batches() || ! $this->store->has_pending_actions_due() ) {
|
||||
$allow = false;
|
||||
} else {
|
||||
$allow = true;
|
||||
}
|
||||
|
||||
return apply_filters( 'action_scheduler_allow_async_request_runner', $allow );
|
||||
}
|
||||
|
||||
/**
|
||||
* Chaining async requests can crash MySQL. A brief sleep call in PHP prevents that.
|
||||
*/
|
||||
protected function get_sleep_seconds() {
|
||||
return apply_filters( 'action_scheduler_async_request_sleep_seconds', 5, $this );
|
||||
}
|
||||
}
|
@@ -0,0 +1,109 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Class ActionScheduler_Compatibility
|
||||
*/
|
||||
class ActionScheduler_Compatibility {
|
||||
|
||||
/**
|
||||
* Converts a shorthand byte value to an integer byte value.
|
||||
*
|
||||
* Wrapper for wp_convert_hr_to_bytes(), moved to load.php in WordPress 4.6 from media.php
|
||||
*
|
||||
* @link https://secure.php.net/manual/en/function.ini-get.php
|
||||
* @link https://secure.php.net/manual/en/faq.using.php#faq.using.shorthandbytes
|
||||
*
|
||||
* @param string $value A (PHP ini) byte value, either shorthand or ordinary.
|
||||
* @return int An integer byte value.
|
||||
*/
|
||||
public static function convert_hr_to_bytes( $value ) {
|
||||
if ( function_exists( 'wp_convert_hr_to_bytes' ) ) {
|
||||
return wp_convert_hr_to_bytes( $value );
|
||||
}
|
||||
|
||||
$value = strtolower( trim( $value ) );
|
||||
$bytes = (int) $value;
|
||||
|
||||
if ( false !== strpos( $value, 'g' ) ) {
|
||||
$bytes *= GB_IN_BYTES;
|
||||
} elseif ( false !== strpos( $value, 'm' ) ) {
|
||||
$bytes *= MB_IN_BYTES;
|
||||
} elseif ( false !== strpos( $value, 'k' ) ) {
|
||||
$bytes *= KB_IN_BYTES;
|
||||
}
|
||||
|
||||
// Deal with large (float) values which run into the maximum integer size.
|
||||
return min( $bytes, PHP_INT_MAX );
|
||||
}
|
||||
|
||||
/**
|
||||
* Attempts to raise the PHP memory limit for memory intensive processes.
|
||||
*
|
||||
* Only allows raising the existing limit and prevents lowering it.
|
||||
*
|
||||
* Wrapper for wp_raise_memory_limit(), added in WordPress v4.6.0
|
||||
*
|
||||
* @return bool|int|string The limit that was set or false on failure.
|
||||
*/
|
||||
public static function raise_memory_limit() {
|
||||
if ( function_exists( 'wp_raise_memory_limit' ) ) {
|
||||
return wp_raise_memory_limit( 'admin' );
|
||||
}
|
||||
|
||||
$current_limit = @ini_get( 'memory_limit' );
|
||||
$current_limit_int = self::convert_hr_to_bytes( $current_limit );
|
||||
|
||||
if ( -1 === $current_limit_int ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$wp_max_limit = WP_MAX_MEMORY_LIMIT;
|
||||
$wp_max_limit_int = self::convert_hr_to_bytes( $wp_max_limit );
|
||||
$filtered_limit = apply_filters( 'admin_memory_limit', $wp_max_limit );
|
||||
$filtered_limit_int = self::convert_hr_to_bytes( $filtered_limit );
|
||||
|
||||
if ( -1 === $filtered_limit_int || ( $filtered_limit_int > $wp_max_limit_int && $filtered_limit_int > $current_limit_int ) ) {
|
||||
if ( false !== @ini_set( 'memory_limit', $filtered_limit ) ) {
|
||||
return $filtered_limit;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
} elseif ( -1 === $wp_max_limit_int || $wp_max_limit_int > $current_limit_int ) {
|
||||
if ( false !== @ini_set( 'memory_limit', $wp_max_limit ) ) {
|
||||
return $wp_max_limit;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Attempts to raise the PHP timeout for time intensive processes.
|
||||
*
|
||||
* Only allows raising the existing limit and prevents lowering it. Wrapper for wc_set_time_limit(), when available.
|
||||
*
|
||||
* @param int $limit The time limit in seconds.
|
||||
*/
|
||||
public static function raise_time_limit( $limit = 0 ) {
|
||||
$limit = (int) $limit;
|
||||
$max_execution_time = (int) ini_get( 'max_execution_time' );
|
||||
|
||||
/*
|
||||
* If the max execution time is already unlimited (zero), or if it exceeds or is equal to the proposed
|
||||
* limit, there is no reason for us to make further changes (we never want to lower it).
|
||||
*/
|
||||
if (
|
||||
0 === $max_execution_time
|
||||
|| ( $max_execution_time >= $limit && $limit !== 0 )
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( function_exists( 'wc_set_time_limit' ) ) {
|
||||
wc_set_time_limit( $limit );
|
||||
} elseif ( function_exists( 'set_time_limit' ) && false === strpos( ini_get( 'disable_functions' ), 'set_time_limit' ) && ! ini_get( 'safe_mode' ) ) { // phpcs:ignore PHPCompatibility.IniDirectives.RemovedIniDirectives.safe_modeDeprecatedRemoved
|
||||
@set_time_limit( $limit ); // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,187 @@
|
||||
<?php
|
||||
|
||||
use Action_Scheduler\Migration\Controller;
|
||||
|
||||
/**
|
||||
* Class ActionScheduler_DataController
|
||||
*
|
||||
* The main plugin/initialization class for the data stores.
|
||||
*
|
||||
* Responsible for hooking everything up with WordPress.
|
||||
*
|
||||
* @package Action_Scheduler
|
||||
*
|
||||
* @since 3.0.0
|
||||
*/
|
||||
class ActionScheduler_DataController {
|
||||
/** Action data store class name. */
|
||||
const DATASTORE_CLASS = 'ActionScheduler_DBStore';
|
||||
|
||||
/** Logger data store class name. */
|
||||
const LOGGER_CLASS = 'ActionScheduler_DBLogger';
|
||||
|
||||
/** Migration status option name. */
|
||||
const STATUS_FLAG = 'action_scheduler_migration_status';
|
||||
|
||||
/** Migration status option value. */
|
||||
const STATUS_COMPLETE = 'complete';
|
||||
|
||||
/** Migration minimum required PHP version. */
|
||||
const MIN_PHP_VERSION = '5.5';
|
||||
|
||||
/** @var ActionScheduler_DataController */
|
||||
private static $instance;
|
||||
|
||||
/** @var int */
|
||||
private static $sleep_time = 0;
|
||||
|
||||
/** @var int */
|
||||
private static $free_ticks = 50;
|
||||
|
||||
/**
|
||||
* Get a flag indicating whether the migration environment dependencies are met.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function dependencies_met() {
|
||||
$php_support = version_compare( PHP_VERSION, self::MIN_PHP_VERSION, '>=' );
|
||||
return $php_support && apply_filters( 'action_scheduler_migration_dependencies_met', true );
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a flag indicating whether the migration is complete.
|
||||
*
|
||||
* @return bool Whether the flag has been set marking the migration as complete
|
||||
*/
|
||||
public static function is_migration_complete() {
|
||||
return get_option( self::STATUS_FLAG ) === self::STATUS_COMPLETE;
|
||||
}
|
||||
|
||||
/**
|
||||
* Mark the migration as complete.
|
||||
*/
|
||||
public static function mark_migration_complete() {
|
||||
update_option( self::STATUS_FLAG, self::STATUS_COMPLETE );
|
||||
}
|
||||
|
||||
/**
|
||||
* Unmark migration when a plugin is de-activated. Will not work in case of silent activation, for example in an update.
|
||||
* We do this to mitigate the bug of lost actions which happens if there was an AS 2.x to AS 3.x migration in the past, but that plugin is now
|
||||
* deactivated and the site was running on AS 2.x again.
|
||||
*/
|
||||
public static function mark_migration_incomplete() {
|
||||
delete_option( self::STATUS_FLAG );
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the action store class name.
|
||||
*
|
||||
* @param string $class Classname of the store class.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function set_store_class( $class ) {
|
||||
return self::DATASTORE_CLASS;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the action logger class name.
|
||||
*
|
||||
* @param string $class Classname of the logger class.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function set_logger_class( $class ) {
|
||||
return self::LOGGER_CLASS;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the sleep time in seconds.
|
||||
*
|
||||
* @param integer $sleep_time The number of seconds to pause before resuming operation.
|
||||
*/
|
||||
public static function set_sleep_time( $sleep_time ) {
|
||||
self::$sleep_time = (int) $sleep_time;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the tick count required for freeing memory.
|
||||
*
|
||||
* @param integer $free_ticks The number of ticks to free memory on.
|
||||
*/
|
||||
public static function set_free_ticks( $free_ticks ) {
|
||||
self::$free_ticks = (int) $free_ticks;
|
||||
}
|
||||
|
||||
/**
|
||||
* Free memory if conditions are met.
|
||||
*
|
||||
* @param int $ticks Current tick count.
|
||||
*/
|
||||
public static function maybe_free_memory( $ticks ) {
|
||||
if ( self::$free_ticks && 0 === $ticks % self::$free_ticks ) {
|
||||
self::free_memory();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Reduce memory footprint by clearing the database query and object caches.
|
||||
*/
|
||||
public static function free_memory() {
|
||||
if ( 0 < self::$sleep_time ) {
|
||||
/* translators: %d: amount of time */
|
||||
\WP_CLI::warning( sprintf( _n( 'Stopped the insanity for %d second', 'Stopped the insanity for %d seconds', self::$sleep_time, 'action-scheduler' ), self::$sleep_time ) );
|
||||
sleep( self::$sleep_time );
|
||||
}
|
||||
|
||||
\WP_CLI::warning( __( 'Attempting to reduce used memory...', 'action-scheduler' ) );
|
||||
|
||||
/**
|
||||
* @var $wpdb \wpdb
|
||||
* @var $wp_object_cache \WP_Object_Cache
|
||||
*/
|
||||
global $wpdb, $wp_object_cache;
|
||||
|
||||
$wpdb->queries = array();
|
||||
|
||||
if ( ! is_a( $wp_object_cache, 'WP_Object_Cache' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$wp_object_cache->group_ops = array();
|
||||
$wp_object_cache->stats = array();
|
||||
$wp_object_cache->memcache_debug = array();
|
||||
$wp_object_cache->cache = array();
|
||||
|
||||
if ( is_callable( array( $wp_object_cache, '__remoteset' ) ) ) {
|
||||
call_user_func( array( $wp_object_cache, '__remoteset' ) ); // important
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Connect to table datastores if migration is complete.
|
||||
* Otherwise, proceed with the migration if the dependencies have been met.
|
||||
*/
|
||||
public static function init() {
|
||||
if ( self::is_migration_complete() ) {
|
||||
add_filter( 'action_scheduler_store_class', array( 'ActionScheduler_DataController', 'set_store_class' ), 100 );
|
||||
add_filter( 'action_scheduler_logger_class', array( 'ActionScheduler_DataController', 'set_logger_class' ), 100 );
|
||||
add_action( 'deactivate_plugin', array( 'ActionScheduler_DataController', 'mark_migration_incomplete' ) );
|
||||
} elseif ( self::dependencies_met() ) {
|
||||
Controller::init();
|
||||
}
|
||||
|
||||
add_action( 'action_scheduler/progress_tick', array( 'ActionScheduler_DataController', 'maybe_free_memory' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Singleton factory.
|
||||
*/
|
||||
public static function instance() {
|
||||
if ( ! isset( self::$instance ) ) {
|
||||
self::$instance = new static();
|
||||
}
|
||||
|
||||
return self::$instance;
|
||||
}
|
||||
}
|
@@ -0,0 +1,79 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* ActionScheduler DateTime class.
|
||||
*
|
||||
* This is a custom extension to DateTime that
|
||||
*/
|
||||
class ActionScheduler_DateTime extends DateTime {
|
||||
|
||||
/**
|
||||
* UTC offset.
|
||||
*
|
||||
* Only used when a timezone is not set. When a timezone string is
|
||||
* used, this will be set to 0.
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $utcOffset = 0;
|
||||
|
||||
/**
|
||||
* Get the unix timestamp of the current object.
|
||||
*
|
||||
* Missing in PHP 5.2 so just here so it can be supported consistently.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
#[\ReturnTypeWillChange]
|
||||
public function getTimestamp() {
|
||||
return method_exists( 'DateTime', 'getTimestamp' ) ? parent::getTimestamp() : $this->format( 'U' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the UTC offset.
|
||||
*
|
||||
* This represents a fixed offset instead of a timezone setting.
|
||||
*
|
||||
* @param $offset
|
||||
*/
|
||||
public function setUtcOffset( $offset ) {
|
||||
$this->utcOffset = intval( $offset );
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the timezone offset.
|
||||
*
|
||||
* @return int
|
||||
* @link http://php.net/manual/en/datetime.getoffset.php
|
||||
*/
|
||||
#[\ReturnTypeWillChange]
|
||||
public function getOffset() {
|
||||
return $this->utcOffset ? $this->utcOffset : parent::getOffset();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the TimeZone associated with the DateTime
|
||||
*
|
||||
* @param DateTimeZone $timezone
|
||||
*
|
||||
* @return static
|
||||
* @link http://php.net/manual/en/datetime.settimezone.php
|
||||
*/
|
||||
#[\ReturnTypeWillChange]
|
||||
public function setTimezone( $timezone ) {
|
||||
$this->utcOffset = 0;
|
||||
parent::setTimezone( $timezone );
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the timestamp with the WordPress timezone offset added or subtracted.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @return int
|
||||
*/
|
||||
public function getOffsetTimestamp() {
|
||||
return $this->getTimestamp() + $this->getOffset();
|
||||
}
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* ActionScheduler Exception Interface.
|
||||
*
|
||||
* Facilitates catching Exceptions unique to Action Scheduler.
|
||||
*
|
||||
* @package ActionScheduler
|
||||
* @since %VERSION%
|
||||
*/
|
||||
interface ActionScheduler_Exception {}
|
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Class ActionScheduler_FatalErrorMonitor
|
||||
*/
|
||||
class ActionScheduler_FatalErrorMonitor {
|
||||
/** @var ActionScheduler_ActionClaim */
|
||||
private $claim = NULL;
|
||||
/** @var ActionScheduler_Store */
|
||||
private $store = NULL;
|
||||
private $action_id = 0;
|
||||
|
||||
public function __construct( ActionScheduler_Store $store ) {
|
||||
$this->store = $store;
|
||||
}
|
||||
|
||||
public function attach( ActionScheduler_ActionClaim $claim ) {
|
||||
$this->claim = $claim;
|
||||
add_action( 'shutdown', array( $this, 'handle_unexpected_shutdown' ) );
|
||||
add_action( 'action_scheduler_before_execute', array( $this, 'track_current_action' ), 0, 1 );
|
||||
add_action( 'action_scheduler_after_execute', array( $this, 'untrack_action' ), 0, 0 );
|
||||
add_action( 'action_scheduler_execution_ignored', array( $this, 'untrack_action' ), 0, 0 );
|
||||
add_action( 'action_scheduler_failed_execution', array( $this, 'untrack_action' ), 0, 0 );
|
||||
}
|
||||
|
||||
public function detach() {
|
||||
$this->claim = NULL;
|
||||
$this->untrack_action();
|
||||
remove_action( 'shutdown', array( $this, 'handle_unexpected_shutdown' ) );
|
||||
remove_action( 'action_scheduler_before_execute', array( $this, 'track_current_action' ), 0 );
|
||||
remove_action( 'action_scheduler_after_execute', array( $this, 'untrack_action' ), 0 );
|
||||
remove_action( 'action_scheduler_execution_ignored', array( $this, 'untrack_action' ), 0 );
|
||||
remove_action( 'action_scheduler_failed_execution', array( $this, 'untrack_action' ), 0 );
|
||||
}
|
||||
|
||||
public function track_current_action( $action_id ) {
|
||||
$this->action_id = $action_id;
|
||||
}
|
||||
|
||||
public function untrack_action() {
|
||||
$this->action_id = 0;
|
||||
}
|
||||
|
||||
public function handle_unexpected_shutdown() {
|
||||
if ( $error = error_get_last() ) {
|
||||
if ( in_array( $error['type'], array( E_ERROR, E_PARSE, E_COMPILE_ERROR, E_USER_ERROR, E_RECOVERABLE_ERROR ) ) ) {
|
||||
if ( !empty($this->action_id) ) {
|
||||
$this->store->mark_failure( $this->action_id );
|
||||
do_action( 'action_scheduler_unexpected_shutdown', $this->action_id, $error );
|
||||
}
|
||||
}
|
||||
$this->store->release_claim( $this->claim );
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* InvalidAction Exception.
|
||||
*
|
||||
* Used for identifying actions that are invalid in some way.
|
||||
*
|
||||
* @package ActionScheduler
|
||||
*/
|
||||
class ActionScheduler_InvalidActionException extends \InvalidArgumentException implements ActionScheduler_Exception {
|
||||
|
||||
/**
|
||||
* Create a new exception when the action's schedule cannot be fetched.
|
||||
*
|
||||
* @param string $action_id The action ID with bad args.
|
||||
* @return static
|
||||
*/
|
||||
public static function from_schedule( $action_id, $schedule ) {
|
||||
$message = sprintf(
|
||||
/* translators: 1: action ID 2: schedule */
|
||||
__( 'Action [%1$s] has an invalid schedule: %2$s', 'action-scheduler' ),
|
||||
$action_id,
|
||||
var_export( $schedule, true )
|
||||
);
|
||||
|
||||
return new static( $message );
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new exception when the action's args cannot be decoded to an array.
|
||||
*
|
||||
* @author Jeremy Pry
|
||||
*
|
||||
* @param string $action_id The action ID with bad args.
|
||||
* @return static
|
||||
*/
|
||||
public static function from_decoding_args( $action_id, $args = array() ) {
|
||||
$message = sprintf(
|
||||
/* translators: 1: action ID 2: arguments */
|
||||
__( 'Action [%1$s] has invalid arguments. It cannot be JSON decoded to an array. $args = %2$s', 'action-scheduler' ),
|
||||
$action_id,
|
||||
var_export( $args, true )
|
||||
);
|
||||
|
||||
return new static( $message );
|
||||
}
|
||||
}
|
@@ -0,0 +1,643 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Implements the admin view of the actions.
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class ActionScheduler_ListTable extends ActionScheduler_Abstract_ListTable {
|
||||
|
||||
/**
|
||||
* The package name.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $package = 'action-scheduler';
|
||||
|
||||
/**
|
||||
* Columns to show (name => label).
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $columns = array();
|
||||
|
||||
/**
|
||||
* Actions (name => label).
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $row_actions = array();
|
||||
|
||||
/**
|
||||
* The active data stores
|
||||
*
|
||||
* @var ActionScheduler_Store
|
||||
*/
|
||||
protected $store;
|
||||
|
||||
/**
|
||||
* A logger to use for getting action logs to display
|
||||
*
|
||||
* @var ActionScheduler_Logger
|
||||
*/
|
||||
protected $logger;
|
||||
|
||||
/**
|
||||
* A ActionScheduler_QueueRunner runner instance (or child class)
|
||||
*
|
||||
* @var ActionScheduler_QueueRunner
|
||||
*/
|
||||
protected $runner;
|
||||
|
||||
/**
|
||||
* Bulk actions. The key of the array is the method name of the implementation:
|
||||
*
|
||||
* bulk_<key>(array $ids, string $sql_in).
|
||||
*
|
||||
* See the comments in the parent class for further details
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $bulk_actions = array();
|
||||
|
||||
/**
|
||||
* Flag variable to render our notifications, if any, once.
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
protected static $did_notification = false;
|
||||
|
||||
/**
|
||||
* Array of seconds for common time periods, like week or month, alongside an internationalised string representation, i.e. "Day" or "Days"
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
private static $time_periods;
|
||||
|
||||
/**
|
||||
* Sets the current data store object into `store->action` and initialises the object.
|
||||
*
|
||||
* @param ActionScheduler_Store $store
|
||||
* @param ActionScheduler_Logger $logger
|
||||
* @param ActionScheduler_QueueRunner $runner
|
||||
*/
|
||||
public function __construct( ActionScheduler_Store $store, ActionScheduler_Logger $logger, ActionScheduler_QueueRunner $runner ) {
|
||||
|
||||
$this->store = $store;
|
||||
$this->logger = $logger;
|
||||
$this->runner = $runner;
|
||||
|
||||
$this->table_header = __( 'Scheduled Actions', 'action-scheduler' );
|
||||
|
||||
$this->bulk_actions = array(
|
||||
'delete' => __( 'Delete', 'action-scheduler' ),
|
||||
);
|
||||
|
||||
$this->columns = array(
|
||||
'hook' => __( 'Hook', 'action-scheduler' ),
|
||||
'status' => __( 'Status', 'action-scheduler' ),
|
||||
'args' => __( 'Arguments', 'action-scheduler' ),
|
||||
'group' => __( 'Group', 'action-scheduler' ),
|
||||
'recurrence' => __( 'Recurrence', 'action-scheduler' ),
|
||||
'schedule' => __( 'Scheduled Date', 'action-scheduler' ),
|
||||
'log_entries' => __( 'Log', 'action-scheduler' ),
|
||||
);
|
||||
|
||||
$this->sort_by = array(
|
||||
'schedule',
|
||||
'hook',
|
||||
'group',
|
||||
);
|
||||
|
||||
$this->search_by = array(
|
||||
'hook',
|
||||
'args',
|
||||
'claim_id',
|
||||
);
|
||||
|
||||
$request_status = $this->get_request_status();
|
||||
|
||||
if ( empty( $request_status ) ) {
|
||||
$this->sort_by[] = 'status';
|
||||
} elseif ( in_array( $request_status, array( 'in-progress', 'failed' ) ) ) {
|
||||
$this->columns += array( 'claim_id' => __( 'Claim ID', 'action-scheduler' ) );
|
||||
$this->sort_by[] = 'claim_id';
|
||||
}
|
||||
|
||||
$this->row_actions = array(
|
||||
'hook' => array(
|
||||
'run' => array(
|
||||
'name' => __( 'Run', 'action-scheduler' ),
|
||||
'desc' => __( 'Process the action now as if it were run as part of a queue', 'action-scheduler' ),
|
||||
),
|
||||
'cancel' => array(
|
||||
'name' => __( 'Cancel', 'action-scheduler' ),
|
||||
'desc' => __( 'Cancel the action now to avoid it being run in future', 'action-scheduler' ),
|
||||
'class' => 'cancel trash',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
self::$time_periods = array(
|
||||
array(
|
||||
'seconds' => YEAR_IN_SECONDS,
|
||||
/* translators: %s: amount of time */
|
||||
'names' => _n_noop( '%s year', '%s years', 'action-scheduler' ),
|
||||
),
|
||||
array(
|
||||
'seconds' => MONTH_IN_SECONDS,
|
||||
/* translators: %s: amount of time */
|
||||
'names' => _n_noop( '%s month', '%s months', 'action-scheduler' ),
|
||||
),
|
||||
array(
|
||||
'seconds' => WEEK_IN_SECONDS,
|
||||
/* translators: %s: amount of time */
|
||||
'names' => _n_noop( '%s week', '%s weeks', 'action-scheduler' ),
|
||||
),
|
||||
array(
|
||||
'seconds' => DAY_IN_SECONDS,
|
||||
/* translators: %s: amount of time */
|
||||
'names' => _n_noop( '%s day', '%s days', 'action-scheduler' ),
|
||||
),
|
||||
array(
|
||||
'seconds' => HOUR_IN_SECONDS,
|
||||
/* translators: %s: amount of time */
|
||||
'names' => _n_noop( '%s hour', '%s hours', 'action-scheduler' ),
|
||||
),
|
||||
array(
|
||||
'seconds' => MINUTE_IN_SECONDS,
|
||||
/* translators: %s: amount of time */
|
||||
'names' => _n_noop( '%s minute', '%s minutes', 'action-scheduler' ),
|
||||
),
|
||||
array(
|
||||
'seconds' => 1,
|
||||
/* translators: %s: amount of time */
|
||||
'names' => _n_noop( '%s second', '%s seconds', 'action-scheduler' ),
|
||||
),
|
||||
);
|
||||
|
||||
parent::__construct(
|
||||
array(
|
||||
'singular' => 'action-scheduler',
|
||||
'plural' => 'action-scheduler',
|
||||
'ajax' => false,
|
||||
)
|
||||
);
|
||||
|
||||
add_screen_option(
|
||||
'per_page',
|
||||
array(
|
||||
'default' => $this->items_per_page,
|
||||
)
|
||||
);
|
||||
|
||||
add_filter( 'set_screen_option_' . $this->get_per_page_option_name(), array( $this, 'set_items_per_page_option' ), 10, 3 );
|
||||
set_screen_options();
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles setting the items_per_page option for this screen.
|
||||
*
|
||||
* @param mixed $status Default false (to skip saving the current option).
|
||||
* @param string $option Screen option name.
|
||||
* @param int $value Screen option value.
|
||||
* @return int
|
||||
*/
|
||||
public function set_items_per_page_option( $status, $option, $value ) {
|
||||
return $value;
|
||||
}
|
||||
/**
|
||||
* Convert an interval of seconds into a two part human friendly string.
|
||||
*
|
||||
* The WordPress human_time_diff() function only calculates the time difference to one degree, meaning
|
||||
* even if an action is 1 day and 11 hours away, it will display "1 day". This function goes one step
|
||||
* further to display two degrees of accuracy.
|
||||
*
|
||||
* Inspired by the Crontrol::interval() function by Edward Dale: https://wordpress.org/plugins/wp-crontrol/
|
||||
*
|
||||
* @param int $interval A interval in seconds.
|
||||
* @param int $periods_to_include Depth of time periods to include, e.g. for an interval of 70, and $periods_to_include of 2, both minutes and seconds would be included. With a value of 1, only minutes would be included.
|
||||
* @return string A human friendly string representation of the interval.
|
||||
*/
|
||||
private static function human_interval( $interval, $periods_to_include = 2 ) {
|
||||
|
||||
if ( $interval <= 0 ) {
|
||||
return __( 'Now!', 'action-scheduler' );
|
||||
}
|
||||
|
||||
$output = '';
|
||||
|
||||
for ( $time_period_index = 0, $periods_included = 0, $seconds_remaining = $interval; $time_period_index < count( self::$time_periods ) && $seconds_remaining > 0 && $periods_included < $periods_to_include; $time_period_index++ ) {
|
||||
|
||||
$periods_in_interval = floor( $seconds_remaining / self::$time_periods[ $time_period_index ]['seconds'] );
|
||||
|
||||
if ( $periods_in_interval > 0 ) {
|
||||
if ( ! empty( $output ) ) {
|
||||
$output .= ' ';
|
||||
}
|
||||
$output .= sprintf( _n( self::$time_periods[ $time_period_index ]['names'][0], self::$time_periods[ $time_period_index ]['names'][1], $periods_in_interval, 'action-scheduler' ), $periods_in_interval );
|
||||
$seconds_remaining -= $periods_in_interval * self::$time_periods[ $time_period_index ]['seconds'];
|
||||
$periods_included++;
|
||||
}
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the recurrence of an action or 'Non-repeating'. The output is human readable.
|
||||
*
|
||||
* @param ActionScheduler_Action $action
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
protected function get_recurrence( $action ) {
|
||||
$schedule = $action->get_schedule();
|
||||
if ( $schedule->is_recurring() ) {
|
||||
$recurrence = $schedule->get_recurrence();
|
||||
|
||||
if ( is_numeric( $recurrence ) ) {
|
||||
/* translators: %s: time interval */
|
||||
return sprintf( __( 'Every %s', 'action-scheduler' ), self::human_interval( $recurrence ) );
|
||||
} else {
|
||||
return $recurrence;
|
||||
}
|
||||
}
|
||||
|
||||
return __( 'Non-repeating', 'action-scheduler' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes the argument of an action to render it in a human friendly format.
|
||||
*
|
||||
* @param array $row The array representation of the current row of the table
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function column_args( array $row ) {
|
||||
if ( empty( $row['args'] ) ) {
|
||||
return apply_filters( 'action_scheduler_list_table_column_args', '', $row );
|
||||
}
|
||||
|
||||
$row_html = '<ul>';
|
||||
foreach ( $row['args'] as $key => $value ) {
|
||||
$row_html .= sprintf( '<li><code>%s => %s</code></li>', esc_html( var_export( $key, true ) ), esc_html( var_export( $value, true ) ) );
|
||||
}
|
||||
$row_html .= '</ul>';
|
||||
|
||||
return apply_filters( 'action_scheduler_list_table_column_args', $row_html, $row );
|
||||
}
|
||||
|
||||
/**
|
||||
* Prints the logs entries inline. We do so to avoid loading Javascript and other hacks to show it in a modal.
|
||||
*
|
||||
* @param array $row Action array.
|
||||
* @return string
|
||||
*/
|
||||
public function column_log_entries( array $row ) {
|
||||
|
||||
$log_entries_html = '<ol>';
|
||||
|
||||
$timezone = new DateTimezone( 'UTC' );
|
||||
|
||||
foreach ( $row['log_entries'] as $log_entry ) {
|
||||
$log_entries_html .= $this->get_log_entry_html( $log_entry, $timezone );
|
||||
}
|
||||
|
||||
$log_entries_html .= '</ol>';
|
||||
|
||||
return $log_entries_html;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prints the logs entries inline. We do so to avoid loading Javascript and other hacks to show it in a modal.
|
||||
*
|
||||
* @param ActionScheduler_LogEntry $log_entry
|
||||
* @param DateTimezone $timezone
|
||||
* @return string
|
||||
*/
|
||||
protected function get_log_entry_html( ActionScheduler_LogEntry $log_entry, DateTimezone $timezone ) {
|
||||
$date = $log_entry->get_date();
|
||||
$date->setTimezone( $timezone );
|
||||
return sprintf( '<li><strong>%s</strong><br/>%s</li>', esc_html( $date->format( 'Y-m-d H:i:s O' ) ), esc_html( $log_entry->get_message() ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Only display row actions for pending actions.
|
||||
*
|
||||
* @param array $row Row to render
|
||||
* @param string $column_name Current row
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
protected function maybe_render_actions( $row, $column_name ) {
|
||||
if ( 'pending' === strtolower( $row[ 'status_name' ] ) ) {
|
||||
return parent::maybe_render_actions( $row, $column_name );
|
||||
}
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Renders admin notifications
|
||||
*
|
||||
* Notifications:
|
||||
* 1. When the maximum number of tasks are being executed simultaneously.
|
||||
* 2. Notifications when a task is manually executed.
|
||||
* 3. Tables are missing.
|
||||
*/
|
||||
public function display_admin_notices() {
|
||||
global $wpdb;
|
||||
|
||||
if ( ( is_a( $this->store, 'ActionScheduler_HybridStore' ) || is_a( $this->store, 'ActionScheduler_DBStore' ) ) && apply_filters( 'action_scheduler_enable_recreate_data_store', true ) ) {
|
||||
$table_list = array(
|
||||
'actionscheduler_actions',
|
||||
'actionscheduler_logs',
|
||||
'actionscheduler_groups',
|
||||
'actionscheduler_claims',
|
||||
);
|
||||
|
||||
$found_tables = $wpdb->get_col( "SHOW TABLES LIKE '{$wpdb->prefix}actionscheduler%'" ); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
|
||||
foreach ( $table_list as $table_name ) {
|
||||
if ( ! in_array( $wpdb->prefix . $table_name, $found_tables ) ) {
|
||||
$this->admin_notices[] = array(
|
||||
'class' => 'error',
|
||||
'message' => __( 'It appears one or more database tables were missing. Attempting to re-create the missing table(s).' , 'action-scheduler' ),
|
||||
);
|
||||
$this->recreate_tables();
|
||||
parent::display_admin_notices();
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( $this->runner->has_maximum_concurrent_batches() ) {
|
||||
$claim_count = $this->store->get_claim_count();
|
||||
$this->admin_notices[] = array(
|
||||
'class' => 'updated',
|
||||
'message' => sprintf(
|
||||
/* translators: %s: amount of claims */
|
||||
_n(
|
||||
'Maximum simultaneous queues already in progress (%s queue). No additional queues will begin processing until the current queues are complete.',
|
||||
'Maximum simultaneous queues already in progress (%s queues). No additional queues will begin processing until the current queues are complete.',
|
||||
$claim_count,
|
||||
'action-scheduler'
|
||||
),
|
||||
$claim_count
|
||||
),
|
||||
);
|
||||
} elseif ( $this->store->has_pending_actions_due() ) {
|
||||
|
||||
$async_request_lock_expiration = ActionScheduler::lock()->get_expiration( 'async-request-runner' );
|
||||
|
||||
// No lock set or lock expired
|
||||
if ( false === $async_request_lock_expiration || $async_request_lock_expiration < time() ) {
|
||||
$in_progress_url = add_query_arg( 'status', 'in-progress', remove_query_arg( 'status' ) );
|
||||
/* translators: %s: process URL */
|
||||
$async_request_message = sprintf( __( 'A new queue has begun processing. <a href="%s">View actions in-progress »</a>', 'action-scheduler' ), esc_url( $in_progress_url ) );
|
||||
} else {
|
||||
/* translators: %d: seconds */
|
||||
$async_request_message = sprintf( __( 'The next queue will begin processing in approximately %d seconds.', 'action-scheduler' ), $async_request_lock_expiration - time() );
|
||||
}
|
||||
|
||||
$this->admin_notices[] = array(
|
||||
'class' => 'notice notice-info',
|
||||
'message' => $async_request_message,
|
||||
);
|
||||
}
|
||||
|
||||
$notification = get_transient( 'action_scheduler_admin_notice' );
|
||||
|
||||
if ( is_array( $notification ) ) {
|
||||
delete_transient( 'action_scheduler_admin_notice' );
|
||||
|
||||
$action = $this->store->fetch_action( $notification['action_id'] );
|
||||
$action_hook_html = '<strong><code>' . $action->get_hook() . '</code></strong>';
|
||||
if ( 1 == $notification['success'] ) {
|
||||
$class = 'updated';
|
||||
switch ( $notification['row_action_type'] ) {
|
||||
case 'run' :
|
||||
/* translators: %s: action HTML */
|
||||
$action_message_html = sprintf( __( 'Successfully executed action: %s', 'action-scheduler' ), $action_hook_html );
|
||||
break;
|
||||
case 'cancel' :
|
||||
/* translators: %s: action HTML */
|
||||
$action_message_html = sprintf( __( 'Successfully canceled action: %s', 'action-scheduler' ), $action_hook_html );
|
||||
break;
|
||||
default :
|
||||
/* translators: %s: action HTML */
|
||||
$action_message_html = sprintf( __( 'Successfully processed change for action: %s', 'action-scheduler' ), $action_hook_html );
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
$class = 'error';
|
||||
/* translators: 1: action HTML 2: action ID 3: error message */
|
||||
$action_message_html = sprintf( __( 'Could not process change for action: "%1$s" (ID: %2$d). Error: %3$s', 'action-scheduler' ), $action_hook_html, esc_html( $notification['action_id'] ), esc_html( $notification['error_message'] ) );
|
||||
}
|
||||
|
||||
$action_message_html = apply_filters( 'action_scheduler_admin_notice_html', $action_message_html, $action, $notification );
|
||||
|
||||
$this->admin_notices[] = array(
|
||||
'class' => $class,
|
||||
'message' => $action_message_html,
|
||||
);
|
||||
}
|
||||
|
||||
parent::display_admin_notices();
|
||||
}
|
||||
|
||||
/**
|
||||
* Prints the scheduled date in a human friendly format.
|
||||
*
|
||||
* @param array $row The array representation of the current row of the table
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function column_schedule( $row ) {
|
||||
return $this->get_schedule_display_string( $row['schedule'] );
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the scheduled date in a human friendly format.
|
||||
*
|
||||
* @param ActionScheduler_Schedule $schedule
|
||||
* @return string
|
||||
*/
|
||||
protected function get_schedule_display_string( ActionScheduler_Schedule $schedule ) {
|
||||
|
||||
$schedule_display_string = '';
|
||||
|
||||
if ( ! $schedule->get_date() ) {
|
||||
return '0000-00-00 00:00:00';
|
||||
}
|
||||
|
||||
$next_timestamp = $schedule->get_date()->getTimestamp();
|
||||
|
||||
$schedule_display_string .= $schedule->get_date()->format( 'Y-m-d H:i:s O' );
|
||||
$schedule_display_string .= '<br/>';
|
||||
|
||||
if ( gmdate( 'U' ) > $next_timestamp ) {
|
||||
/* translators: %s: date interval */
|
||||
$schedule_display_string .= sprintf( __( ' (%s ago)', 'action-scheduler' ), self::human_interval( gmdate( 'U' ) - $next_timestamp ) );
|
||||
} else {
|
||||
/* translators: %s: date interval */
|
||||
$schedule_display_string .= sprintf( __( ' (%s)', 'action-scheduler' ), self::human_interval( $next_timestamp - gmdate( 'U' ) ) );
|
||||
}
|
||||
|
||||
return $schedule_display_string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Bulk delete
|
||||
*
|
||||
* Deletes actions based on their ID. This is the handler for the bulk delete. It assumes the data
|
||||
* properly validated by the callee and it will delete the actions without any extra validation.
|
||||
*
|
||||
* @param array $ids
|
||||
* @param string $ids_sql Inherited and unused
|
||||
*/
|
||||
protected function bulk_delete( array $ids, $ids_sql ) {
|
||||
foreach ( $ids as $id ) {
|
||||
$this->store->delete_action( $id );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements the logic behind running an action. ActionScheduler_Abstract_ListTable validates the request and their
|
||||
* parameters are valid.
|
||||
*
|
||||
* @param int $action_id
|
||||
*/
|
||||
protected function row_action_cancel( $action_id ) {
|
||||
$this->process_row_action( $action_id, 'cancel' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements the logic behind running an action. ActionScheduler_Abstract_ListTable validates the request and their
|
||||
* parameters are valid.
|
||||
*
|
||||
* @param int $action_id
|
||||
*/
|
||||
protected function row_action_run( $action_id ) {
|
||||
$this->process_row_action( $action_id, 'run' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Force the data store schema updates.
|
||||
*/
|
||||
protected function recreate_tables() {
|
||||
if ( is_a( $this->store, 'ActionScheduler_HybridStore' ) ) {
|
||||
$store = $this->store;
|
||||
} else {
|
||||
$store = new ActionScheduler_HybridStore();
|
||||
}
|
||||
add_action( 'action_scheduler/created_table', array( $store, 'set_autoincrement' ), 10, 2 );
|
||||
|
||||
$store_schema = new ActionScheduler_StoreSchema();
|
||||
$logger_schema = new ActionScheduler_LoggerSchema();
|
||||
$store_schema->register_tables( true );
|
||||
$logger_schema->register_tables( true );
|
||||
|
||||
remove_action( 'action_scheduler/created_table', array( $store, 'set_autoincrement' ), 10 );
|
||||
}
|
||||
/**
|
||||
* Implements the logic behind processing an action once an action link is clicked on the list table.
|
||||
*
|
||||
* @param int $action_id
|
||||
* @param string $row_action_type The type of action to perform on the action.
|
||||
*/
|
||||
protected function process_row_action( $action_id, $row_action_type ) {
|
||||
try {
|
||||
switch ( $row_action_type ) {
|
||||
case 'run' :
|
||||
$this->runner->process_action( $action_id, 'Admin List Table' );
|
||||
break;
|
||||
case 'cancel' :
|
||||
$this->store->cancel_action( $action_id );
|
||||
break;
|
||||
}
|
||||
$success = 1;
|
||||
$error_message = '';
|
||||
} catch ( Exception $e ) {
|
||||
$success = 0;
|
||||
$error_message = $e->getMessage();
|
||||
}
|
||||
|
||||
set_transient( 'action_scheduler_admin_notice', compact( 'action_id', 'success', 'error_message', 'row_action_type' ), 30 );
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function prepare_items() {
|
||||
$this->prepare_column_headers();
|
||||
|
||||
$per_page = $this->get_items_per_page( $this->get_per_page_option_name(), $this->items_per_page );
|
||||
|
||||
$query = array(
|
||||
'per_page' => $per_page,
|
||||
'offset' => $this->get_items_offset(),
|
||||
'status' => $this->get_request_status(),
|
||||
'orderby' => $this->get_request_orderby(),
|
||||
'order' => $this->get_request_order(),
|
||||
'search' => $this->get_request_search_query(),
|
||||
);
|
||||
|
||||
$this->items = array();
|
||||
|
||||
$total_items = $this->store->query_actions( $query, 'count' );
|
||||
|
||||
$status_labels = $this->store->get_status_labels();
|
||||
|
||||
foreach ( $this->store->query_actions( $query ) as $action_id ) {
|
||||
try {
|
||||
$action = $this->store->fetch_action( $action_id );
|
||||
} catch ( Exception $e ) {
|
||||
continue;
|
||||
}
|
||||
if ( is_a( $action, 'ActionScheduler_NullAction' ) ) {
|
||||
continue;
|
||||
}
|
||||
$this->items[ $action_id ] = array(
|
||||
'ID' => $action_id,
|
||||
'hook' => $action->get_hook(),
|
||||
'status_name' => $this->store->get_status( $action_id ),
|
||||
'status' => $status_labels[ $this->store->get_status( $action_id ) ],
|
||||
'args' => $action->get_args(),
|
||||
'group' => $action->get_group(),
|
||||
'log_entries' => $this->logger->get_logs( $action_id ),
|
||||
'claim_id' => $this->store->get_claim_id( $action_id ),
|
||||
'recurrence' => $this->get_recurrence( $action ),
|
||||
'schedule' => $action->get_schedule(),
|
||||
);
|
||||
}
|
||||
|
||||
$this->set_pagination_args( array(
|
||||
'total_items' => $total_items,
|
||||
'per_page' => $per_page,
|
||||
'total_pages' => ceil( $total_items / $per_page ),
|
||||
) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Prints the available statuses so the user can click to filter.
|
||||
*/
|
||||
protected function display_filter_by_status() {
|
||||
$this->status_counts = $this->store->action_counts();
|
||||
parent::display_filter_by_status();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the text to display in the search box on the list table.
|
||||
*/
|
||||
protected function get_search_box_button_text() {
|
||||
return __( 'Search hook, args and claim ID', 'action-scheduler' );
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
protected function get_per_page_option_name() {
|
||||
return str_replace( '-', '_', $this->screen->id ) . '_per_page';
|
||||
}
|
||||
}
|
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Class ActionScheduler_LogEntry
|
||||
*/
|
||||
class ActionScheduler_LogEntry {
|
||||
|
||||
/**
|
||||
* @var int $action_id
|
||||
*/
|
||||
protected $action_id = '';
|
||||
|
||||
/**
|
||||
* @var string $message
|
||||
*/
|
||||
protected $message = '';
|
||||
|
||||
/**
|
||||
* @var Datetime $date
|
||||
*/
|
||||
protected $date;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param mixed $action_id Action ID
|
||||
* @param string $message Message
|
||||
* @param Datetime $date Datetime object with the time when this log entry was created. If this parameter is
|
||||
* not provided a new Datetime object (with current time) will be created.
|
||||
*/
|
||||
public function __construct( $action_id, $message, $date = null ) {
|
||||
|
||||
/*
|
||||
* ActionScheduler_wpCommentLogger::get_entry() previously passed a 3rd param of $comment->comment_type
|
||||
* to ActionScheduler_LogEntry::__construct(), goodness knows why, and the Follow-up Emails plugin
|
||||
* hard-codes loading its own version of ActionScheduler_wpCommentLogger with that out-dated method,
|
||||
* goodness knows why, so we need to guard against that here instead of using a DateTime type declaration
|
||||
* for the constructor's 3rd param of $date and causing a fatal error with older versions of FUE.
|
||||
*/
|
||||
if ( null !== $date && ! is_a( $date, 'DateTime' ) ) {
|
||||
_doing_it_wrong( __METHOD__, 'The third parameter must be a valid DateTime instance, or null.', '2.0.0' );
|
||||
$date = null;
|
||||
}
|
||||
|
||||
$this->action_id = $action_id;
|
||||
$this->message = $message;
|
||||
$this->date = $date ? $date : new Datetime;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the date when this log entry was created
|
||||
*
|
||||
* @return Datetime
|
||||
*/
|
||||
public function get_date() {
|
||||
return $this->date;
|
||||
}
|
||||
|
||||
public function get_action_id() {
|
||||
return $this->action_id;
|
||||
}
|
||||
|
||||
public function get_message() {
|
||||
return $this->message;
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Class ActionScheduler_NullLogEntry
|
||||
*/
|
||||
class ActionScheduler_NullLogEntry extends ActionScheduler_LogEntry {
|
||||
public function __construct( $action_id = '', $message = '' ) {
|
||||
// nothing to see here
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Provide a way to set simple transient locks to block behaviour
|
||||
* for up-to a given duration.
|
||||
*
|
||||
* Class ActionScheduler_OptionLock
|
||||
* @since 3.0.0
|
||||
*/
|
||||
class ActionScheduler_OptionLock extends ActionScheduler_Lock {
|
||||
|
||||
/**
|
||||
* Set a lock using options for a given amount of time (60 seconds by default).
|
||||
*
|
||||
* Using an autoloaded option avoids running database queries or other resource intensive tasks
|
||||
* on frequently triggered hooks, like 'init' or 'shutdown'.
|
||||
*
|
||||
* For example, ActionScheduler_QueueRunner->maybe_dispatch_async_request() uses a lock to avoid
|
||||
* calling ActionScheduler_QueueRunner->has_maximum_concurrent_batches() every time the 'shutdown',
|
||||
* hook is triggered, because that method calls ActionScheduler_QueueRunner->store->get_claim_count()
|
||||
* to find the current number of claims in the database.
|
||||
*
|
||||
* @param string $lock_type A string to identify different lock types.
|
||||
* @bool True if lock value has changed, false if not or if set failed.
|
||||
*/
|
||||
public function set( $lock_type ) {
|
||||
return update_option( $this->get_key( $lock_type ), time() + $this->get_duration( $lock_type ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* If a lock is set, return the timestamp it was set to expiry.
|
||||
*
|
||||
* @param string $lock_type A string to identify different lock types.
|
||||
* @return bool|int False if no lock is set, otherwise the timestamp for when the lock is set to expire.
|
||||
*/
|
||||
public function get_expiration( $lock_type ) {
|
||||
return get_option( $this->get_key( $lock_type ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the key to use for storing the lock in the transient
|
||||
*
|
||||
* @param string $lock_type A string to identify different lock types.
|
||||
* @return string
|
||||
*/
|
||||
protected function get_key( $lock_type ) {
|
||||
return sprintf( 'action_scheduler_lock_%s', $lock_type );
|
||||
}
|
||||
}
|
@@ -0,0 +1,158 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Class ActionScheduler_QueueCleaner
|
||||
*/
|
||||
class ActionScheduler_QueueCleaner {
|
||||
|
||||
/** @var int */
|
||||
protected $batch_size;
|
||||
|
||||
/** @var ActionScheduler_Store */
|
||||
private $store = null;
|
||||
|
||||
/**
|
||||
* 31 days in seconds.
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
private $month_in_seconds = 2678400;
|
||||
|
||||
/**
|
||||
* ActionScheduler_QueueCleaner constructor.
|
||||
*
|
||||
* @param ActionScheduler_Store $store The store instance.
|
||||
* @param int $batch_size The batch size.
|
||||
*/
|
||||
public function __construct( ActionScheduler_Store $store = null, $batch_size = 20 ) {
|
||||
$this->store = $store ? $store : ActionScheduler_Store::instance();
|
||||
$this->batch_size = $batch_size;
|
||||
}
|
||||
|
||||
public function delete_old_actions() {
|
||||
$lifespan = apply_filters( 'action_scheduler_retention_period', $this->month_in_seconds );
|
||||
$cutoff = as_get_datetime_object($lifespan.' seconds ago');
|
||||
|
||||
$statuses_to_purge = array(
|
||||
ActionScheduler_Store::STATUS_COMPLETE,
|
||||
ActionScheduler_Store::STATUS_CANCELED,
|
||||
);
|
||||
|
||||
foreach ( $statuses_to_purge as $status ) {
|
||||
$actions_to_delete = $this->store->query_actions( array(
|
||||
'status' => $status,
|
||||
'modified' => $cutoff,
|
||||
'modified_compare' => '<=',
|
||||
'per_page' => $this->get_batch_size(),
|
||||
'orderby' => 'none',
|
||||
) );
|
||||
|
||||
foreach ( $actions_to_delete as $action_id ) {
|
||||
try {
|
||||
$this->store->delete_action( $action_id );
|
||||
} catch ( Exception $e ) {
|
||||
|
||||
/**
|
||||
* Notify 3rd party code of exceptions when deleting a completed action older than the retention period
|
||||
*
|
||||
* This hook provides a way for 3rd party code to log or otherwise handle exceptions relating to their
|
||||
* actions.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*
|
||||
* @param int $action_id The scheduled actions ID in the data store
|
||||
* @param Exception $e The exception thrown when attempting to delete the action from the data store
|
||||
* @param int $lifespan The retention period, in seconds, for old actions
|
||||
* @param int $count_of_actions_to_delete The number of old actions being deleted in this batch
|
||||
*/
|
||||
do_action( 'action_scheduler_failed_old_action_deletion', $action_id, $e, $lifespan, count( $actions_to_delete ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unclaim pending actions that have not been run within a given time limit.
|
||||
*
|
||||
* When called by ActionScheduler_Abstract_QueueRunner::run_cleanup(), the time limit passed
|
||||
* as a parameter is 10x the time limit used for queue processing.
|
||||
*
|
||||
* @param int $time_limit The number of seconds to allow a queue to run before unclaiming its pending actions. Default 300 (5 minutes).
|
||||
*/
|
||||
public function reset_timeouts( $time_limit = 300 ) {
|
||||
$timeout = apply_filters( 'action_scheduler_timeout_period', $time_limit );
|
||||
if ( $timeout < 0 ) {
|
||||
return;
|
||||
}
|
||||
$cutoff = as_get_datetime_object($timeout.' seconds ago');
|
||||
$actions_to_reset = $this->store->query_actions( array(
|
||||
'status' => ActionScheduler_Store::STATUS_PENDING,
|
||||
'modified' => $cutoff,
|
||||
'modified_compare' => '<=',
|
||||
'claimed' => true,
|
||||
'per_page' => $this->get_batch_size(),
|
||||
'orderby' => 'none',
|
||||
) );
|
||||
|
||||
foreach ( $actions_to_reset as $action_id ) {
|
||||
$this->store->unclaim_action( $action_id );
|
||||
do_action( 'action_scheduler_reset_action', $action_id );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Mark actions that have been running for more than a given time limit as failed, based on
|
||||
* the assumption some uncatachable and unloggable fatal error occurred during processing.
|
||||
*
|
||||
* When called by ActionScheduler_Abstract_QueueRunner::run_cleanup(), the time limit passed
|
||||
* as a parameter is 10x the time limit used for queue processing.
|
||||
*
|
||||
* @param int $time_limit The number of seconds to allow an action to run before it is considered to have failed. Default 300 (5 minutes).
|
||||
*/
|
||||
public function mark_failures( $time_limit = 300 ) {
|
||||
$timeout = apply_filters( 'action_scheduler_failure_period', $time_limit );
|
||||
if ( $timeout < 0 ) {
|
||||
return;
|
||||
}
|
||||
$cutoff = as_get_datetime_object($timeout.' seconds ago');
|
||||
$actions_to_reset = $this->store->query_actions( array(
|
||||
'status' => ActionScheduler_Store::STATUS_RUNNING,
|
||||
'modified' => $cutoff,
|
||||
'modified_compare' => '<=',
|
||||
'per_page' => $this->get_batch_size(),
|
||||
'orderby' => 'none',
|
||||
) );
|
||||
|
||||
foreach ( $actions_to_reset as $action_id ) {
|
||||
$this->store->mark_failure( $action_id );
|
||||
do_action( 'action_scheduler_failed_action', $action_id, $timeout );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Do all of the cleaning actions.
|
||||
*
|
||||
* @param int $time_limit The number of seconds to use as the timeout and failure period. Default 300 (5 minutes).
|
||||
* @author Jeremy Pry
|
||||
*/
|
||||
public function clean( $time_limit = 300 ) {
|
||||
$this->delete_old_actions();
|
||||
$this->reset_timeouts( $time_limit );
|
||||
$this->mark_failures( $time_limit );
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the batch size for cleaning the queue.
|
||||
*
|
||||
* @author Jeremy Pry
|
||||
* @return int
|
||||
*/
|
||||
protected function get_batch_size() {
|
||||
/**
|
||||
* Filter the batch size when cleaning the queue.
|
||||
*
|
||||
* @param int $batch_size The number of actions to clean in one batch.
|
||||
*/
|
||||
return absint( apply_filters( 'action_scheduler_cleanup_batch_size', $this->batch_size ) );
|
||||
}
|
||||
}
|
@@ -0,0 +1,197 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Class ActionScheduler_QueueRunner
|
||||
*/
|
||||
class ActionScheduler_QueueRunner extends ActionScheduler_Abstract_QueueRunner {
|
||||
const WP_CRON_HOOK = 'action_scheduler_run_queue';
|
||||
|
||||
const WP_CRON_SCHEDULE = 'every_minute';
|
||||
|
||||
/** @var ActionScheduler_AsyncRequest_QueueRunner */
|
||||
protected $async_request;
|
||||
|
||||
/** @var ActionScheduler_QueueRunner */
|
||||
private static $runner = null;
|
||||
|
||||
/**
|
||||
* @return ActionScheduler_QueueRunner
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public static function instance() {
|
||||
if ( empty(self::$runner) ) {
|
||||
$class = apply_filters('action_scheduler_queue_runner_class', 'ActionScheduler_QueueRunner');
|
||||
self::$runner = new $class();
|
||||
}
|
||||
return self::$runner;
|
||||
}
|
||||
|
||||
/**
|
||||
* ActionScheduler_QueueRunner constructor.
|
||||
*
|
||||
* @param ActionScheduler_Store $store
|
||||
* @param ActionScheduler_FatalErrorMonitor $monitor
|
||||
* @param ActionScheduler_QueueCleaner $cleaner
|
||||
*/
|
||||
public function __construct( ActionScheduler_Store $store = null, ActionScheduler_FatalErrorMonitor $monitor = null, ActionScheduler_QueueCleaner $cleaner = null, ActionScheduler_AsyncRequest_QueueRunner $async_request = null ) {
|
||||
parent::__construct( $store, $monitor, $cleaner );
|
||||
|
||||
if ( is_null( $async_request ) ) {
|
||||
$async_request = new ActionScheduler_AsyncRequest_QueueRunner( $this->store );
|
||||
}
|
||||
|
||||
$this->async_request = $async_request;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function init() {
|
||||
|
||||
add_filter( 'cron_schedules', array( self::instance(), 'add_wp_cron_schedule' ) );
|
||||
|
||||
// Check for and remove any WP Cron hook scheduled by Action Scheduler < 3.0.0, which didn't include the $context param
|
||||
$next_timestamp = wp_next_scheduled( self::WP_CRON_HOOK );
|
||||
if ( $next_timestamp ) {
|
||||
wp_unschedule_event( $next_timestamp, self::WP_CRON_HOOK );
|
||||
}
|
||||
|
||||
$cron_context = array( 'WP Cron' );
|
||||
|
||||
if ( ! wp_next_scheduled( self::WP_CRON_HOOK, $cron_context ) ) {
|
||||
$schedule = apply_filters( 'action_scheduler_run_schedule', self::WP_CRON_SCHEDULE );
|
||||
wp_schedule_event( time(), $schedule, self::WP_CRON_HOOK, $cron_context );
|
||||
}
|
||||
|
||||
add_action( self::WP_CRON_HOOK, array( self::instance(), 'run' ) );
|
||||
$this->hook_dispatch_async_request();
|
||||
}
|
||||
|
||||
/**
|
||||
* Hook check for dispatching an async request.
|
||||
*/
|
||||
public function hook_dispatch_async_request() {
|
||||
add_action( 'shutdown', array( $this, 'maybe_dispatch_async_request' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Unhook check for dispatching an async request.
|
||||
*/
|
||||
public function unhook_dispatch_async_request() {
|
||||
remove_action( 'shutdown', array( $this, 'maybe_dispatch_async_request' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if we should dispatch an async request to process actions.
|
||||
*
|
||||
* This method is attached to 'shutdown', so is called frequently. To avoid slowing down
|
||||
* the site, it mitigates the work performed in each request by:
|
||||
* 1. checking if it's in the admin context and then
|
||||
* 2. haven't run on the 'shutdown' hook within the lock time (60 seconds by default)
|
||||
* 3. haven't exceeded the number of allowed batches.
|
||||
*
|
||||
* The order of these checks is important, because they run from a check on a value:
|
||||
* 1. in memory - is_admin() maps to $GLOBALS or the WP_ADMIN constant
|
||||
* 2. in memory - transients use autoloaded options by default
|
||||
* 3. from a database query - has_maximum_concurrent_batches() run the query
|
||||
* $this->store->get_claim_count() to find the current number of claims in the DB.
|
||||
*
|
||||
* If all of these conditions are met, then we request an async runner check whether it
|
||||
* should dispatch a request to process pending actions.
|
||||
*/
|
||||
public function maybe_dispatch_async_request() {
|
||||
if ( is_admin() && ! ActionScheduler::lock()->is_locked( 'async-request-runner' ) ) {
|
||||
// Only start an async queue at most once every 60 seconds
|
||||
ActionScheduler::lock()->set( 'async-request-runner' );
|
||||
$this->async_request->maybe_dispatch();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Process actions in the queue. Attached to self::WP_CRON_HOOK i.e. 'action_scheduler_run_queue'
|
||||
*
|
||||
* The $context param of this method defaults to 'WP Cron', because prior to Action Scheduler 3.0.0
|
||||
* that was the only context in which this method was run, and the self::WP_CRON_HOOK hook had no context
|
||||
* passed along with it. New code calling this method directly, or by triggering the self::WP_CRON_HOOK,
|
||||
* should set a context as the first parameter. For an example of this, refer to the code seen in
|
||||
* @see ActionScheduler_AsyncRequest_QueueRunner::handle()
|
||||
*
|
||||
* @param string $context Optional identifer for the context in which this action is being processed, e.g. 'WP CLI' or 'WP Cron'
|
||||
* Generally, this should be capitalised and not localised as it's a proper noun.
|
||||
* @return int The number of actions processed.
|
||||
*/
|
||||
public function run( $context = 'WP Cron' ) {
|
||||
ActionScheduler_Compatibility::raise_memory_limit();
|
||||
ActionScheduler_Compatibility::raise_time_limit( $this->get_time_limit() );
|
||||
do_action( 'action_scheduler_before_process_queue' );
|
||||
$this->run_cleanup();
|
||||
$processed_actions = 0;
|
||||
if ( false === $this->has_maximum_concurrent_batches() ) {
|
||||
$batch_size = apply_filters( 'action_scheduler_queue_runner_batch_size', 25 );
|
||||
do {
|
||||
$processed_actions_in_batch = $this->do_batch( $batch_size, $context );
|
||||
$processed_actions += $processed_actions_in_batch;
|
||||
} while ( $processed_actions_in_batch > 0 && ! $this->batch_limits_exceeded( $processed_actions ) ); // keep going until we run out of actions, time, or memory
|
||||
}
|
||||
|
||||
do_action( 'action_scheduler_after_process_queue' );
|
||||
return $processed_actions;
|
||||
}
|
||||
|
||||
/**
|
||||
* Process a batch of actions pending in the queue.
|
||||
*
|
||||
* Actions are processed by claiming a set of pending actions then processing each one until either the batch
|
||||
* size is completed, or memory or time limits are reached, defined by @see $this->batch_limits_exceeded().
|
||||
*
|
||||
* @param int $size The maximum number of actions to process in the batch.
|
||||
* @param string $context Optional identifer for the context in which this action is being processed, e.g. 'WP CLI' or 'WP Cron'
|
||||
* Generally, this should be capitalised and not localised as it's a proper noun.
|
||||
* @return int The number of actions processed.
|
||||
*/
|
||||
protected function do_batch( $size = 100, $context = '' ) {
|
||||
$claim = $this->store->stake_claim($size);
|
||||
$this->monitor->attach($claim);
|
||||
$processed_actions = 0;
|
||||
|
||||
foreach ( $claim->get_actions() as $action_id ) {
|
||||
// bail if we lost the claim
|
||||
if ( ! in_array( $action_id, $this->store->find_actions_by_claim_id( $claim->get_id() ) ) ) {
|
||||
break;
|
||||
}
|
||||
$this->process_action( $action_id, $context );
|
||||
$processed_actions++;
|
||||
|
||||
if ( $this->batch_limits_exceeded( $processed_actions ) ) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
$this->store->release_claim($claim);
|
||||
$this->monitor->detach();
|
||||
$this->clear_caches();
|
||||
return $processed_actions;
|
||||
}
|
||||
|
||||
/**
|
||||
* Running large batches can eat up memory, as WP adds data to its object cache.
|
||||
*
|
||||
* If using a persistent object store, this has the side effect of flushing that
|
||||
* as well, so this is disabled by default. To enable:
|
||||
*
|
||||
* add_filter( 'action_scheduler_queue_runner_flush_cache', '__return_true' );
|
||||
*/
|
||||
protected function clear_caches() {
|
||||
if ( ! wp_using_ext_object_cache() || apply_filters( 'action_scheduler_queue_runner_flush_cache', false ) ) {
|
||||
wp_cache_flush();
|
||||
}
|
||||
}
|
||||
|
||||
public function add_wp_cron_schedule( $schedules ) {
|
||||
$schedules['every_minute'] = array(
|
||||
'interval' => 60, // in seconds
|
||||
'display' => __( 'Every minute', 'action-scheduler' ),
|
||||
);
|
||||
|
||||
return $schedules;
|
||||
}
|
||||
}
|
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Class ActionScheduler_Versions
|
||||
*/
|
||||
class ActionScheduler_Versions {
|
||||
/**
|
||||
* @var ActionScheduler_Versions
|
||||
*/
|
||||
private static $instance = NULL;
|
||||
|
||||
private $versions = array();
|
||||
|
||||
public function register( $version_string, $initialization_callback ) {
|
||||
if ( isset($this->versions[$version_string]) ) {
|
||||
return FALSE;
|
||||
}
|
||||
$this->versions[$version_string] = $initialization_callback;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
public function get_versions() {
|
||||
return $this->versions;
|
||||
}
|
||||
|
||||
public function latest_version() {
|
||||
$keys = array_keys($this->versions);
|
||||
if ( empty($keys) ) {
|
||||
return false;
|
||||
}
|
||||
uasort( $keys, 'version_compare' );
|
||||
return end($keys);
|
||||
}
|
||||
|
||||
public function latest_version_callback() {
|
||||
$latest = $this->latest_version();
|
||||
if ( empty($latest) || !isset($this->versions[$latest]) ) {
|
||||
return '__return_null';
|
||||
}
|
||||
return $this->versions[$latest];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ActionScheduler_Versions
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public static function instance() {
|
||||
if ( empty(self::$instance) ) {
|
||||
self::$instance = new self();
|
||||
}
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public static function initialize_latest_version() {
|
||||
$self = self::instance();
|
||||
call_user_func($self->latest_version_callback());
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,115 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Class ActionScheduler_WPCommentCleaner
|
||||
*
|
||||
* @since 3.0.0
|
||||
*/
|
||||
class ActionScheduler_WPCommentCleaner {
|
||||
|
||||
/**
|
||||
* Post migration hook used to cleanup the WP comment table.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $cleanup_hook = 'action_scheduler/cleanup_wp_comment_logs';
|
||||
|
||||
/**
|
||||
* An instance of the ActionScheduler_wpCommentLogger class to interact with the comments table.
|
||||
*
|
||||
* This instance should only be used as an interface. It should not be initialized.
|
||||
*
|
||||
* @var ActionScheduler_wpCommentLogger
|
||||
*/
|
||||
protected static $wp_comment_logger = null;
|
||||
|
||||
/**
|
||||
* The key used to store the cached value of whether there are logs in the WP comment table.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $has_logs_option_key = 'as_has_wp_comment_logs';
|
||||
|
||||
/**
|
||||
* Initialize the class and attach callbacks.
|
||||
*/
|
||||
public static function init() {
|
||||
if ( empty( self::$wp_comment_logger ) ) {
|
||||
self::$wp_comment_logger = new ActionScheduler_wpCommentLogger();
|
||||
}
|
||||
|
||||
add_action( self::$cleanup_hook, array( __CLASS__, 'delete_all_action_comments' ) );
|
||||
|
||||
// While there are orphaned logs left in the comments table, we need to attach the callbacks which filter comment counts.
|
||||
add_action( 'pre_get_comments', array( self::$wp_comment_logger, 'filter_comment_queries' ), 10, 1 );
|
||||
add_action( 'wp_count_comments', array( self::$wp_comment_logger, 'filter_comment_count' ), 20, 2 ); // run after WC_Comments::wp_count_comments() to make sure we exclude order notes and action logs
|
||||
add_action( 'comment_feed_where', array( self::$wp_comment_logger, 'filter_comment_feed' ), 10, 2 );
|
||||
|
||||
// Action Scheduler may be displayed as a Tools screen or WooCommerce > Status administration screen
|
||||
add_action( 'load-tools_page_action-scheduler', array( __CLASS__, 'register_admin_notice' ) );
|
||||
add_action( 'load-woocommerce_page_wc-status', array( __CLASS__, 'register_admin_notice' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines if there are log entries in the wp comments table.
|
||||
*
|
||||
* Uses the flag set on migration completion set by @see self::maybe_schedule_cleanup().
|
||||
*
|
||||
* @return boolean Whether there are scheduled action comments in the comments table.
|
||||
*/
|
||||
public static function has_logs() {
|
||||
return 'yes' === get_option( self::$has_logs_option_key );
|
||||
}
|
||||
|
||||
/**
|
||||
* Schedules the WP Post comment table cleanup to run in 6 months if it's not already scheduled.
|
||||
* Attached to the migration complete hook 'action_scheduler/migration_complete'.
|
||||
*/
|
||||
public static function maybe_schedule_cleanup() {
|
||||
if ( (bool) get_comments( array( 'type' => ActionScheduler_wpCommentLogger::TYPE, 'number' => 1, 'fields' => 'ids' ) ) ) {
|
||||
update_option( self::$has_logs_option_key, 'yes' );
|
||||
|
||||
if ( ! as_next_scheduled_action( self::$cleanup_hook ) ) {
|
||||
as_schedule_single_action( gmdate( 'U' ) + ( 6 * MONTH_IN_SECONDS ), self::$cleanup_hook );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete all action comments from the WP Comments table.
|
||||
*/
|
||||
public static function delete_all_action_comments() {
|
||||
global $wpdb;
|
||||
$wpdb->delete( $wpdb->comments, array( 'comment_type' => ActionScheduler_wpCommentLogger::TYPE, 'comment_agent' => ActionScheduler_wpCommentLogger::AGENT ) );
|
||||
delete_option( self::$has_logs_option_key );
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers admin notices about the orphaned action logs.
|
||||
*/
|
||||
public static function register_admin_notice() {
|
||||
add_action( 'admin_notices', array( __CLASS__, 'print_admin_notice' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Prints details about the orphaned action logs and includes information on where to learn more.
|
||||
*/
|
||||
public static function print_admin_notice() {
|
||||
$next_cleanup_message = '';
|
||||
$next_scheduled_cleanup_hook = as_next_scheduled_action( self::$cleanup_hook );
|
||||
|
||||
if ( $next_scheduled_cleanup_hook ) {
|
||||
/* translators: %s: date interval */
|
||||
$next_cleanup_message = sprintf( __( 'This data will be deleted in %s.', 'action-scheduler' ), human_time_diff( gmdate( 'U' ), $next_scheduled_cleanup_hook ) );
|
||||
}
|
||||
|
||||
$notice = sprintf(
|
||||
/* translators: 1: next cleanup message 2: github issue URL */
|
||||
__( 'Action Scheduler has migrated data to custom tables; however, orphaned log entries exist in the WordPress Comments table. %1$s <a href="%2$s">Learn more »</a>', 'action-scheduler' ),
|
||||
$next_cleanup_message,
|
||||
'https://github.com/woocommerce/action-scheduler/issues/368'
|
||||
);
|
||||
|
||||
echo '<div class="notice notice-warning"><p>' . wp_kses_post( $notice ) . '</p></div>';
|
||||
}
|
||||
}
|
@@ -0,0 +1,166 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Class ActionScheduler_wcSystemStatus
|
||||
*/
|
||||
class ActionScheduler_wcSystemStatus {
|
||||
|
||||
/**
|
||||
* The active data stores
|
||||
*
|
||||
* @var ActionScheduler_Store
|
||||
*/
|
||||
protected $store;
|
||||
|
||||
/**
|
||||
* Constructor method for ActionScheduler_wcSystemStatus.
|
||||
*
|
||||
* @param ActionScheduler_Store $store Active store object.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct( $store ) {
|
||||
$this->store = $store;
|
||||
}
|
||||
|
||||
/**
|
||||
* Display action data, including number of actions grouped by status and the oldest & newest action in each status.
|
||||
*
|
||||
* Helpful to identify issues, like a clogged queue.
|
||||
*/
|
||||
public function render() {
|
||||
$action_counts = $this->store->action_counts();
|
||||
$status_labels = $this->store->get_status_labels();
|
||||
$oldest_and_newest = $this->get_oldest_and_newest( array_keys( $status_labels ) );
|
||||
|
||||
$this->get_template( $status_labels, $action_counts, $oldest_and_newest );
|
||||
}
|
||||
|
||||
/**
|
||||
* Get oldest and newest scheduled dates for a given set of statuses.
|
||||
*
|
||||
* @param array $status_keys Set of statuses to find oldest & newest action for.
|
||||
* @return array
|
||||
*/
|
||||
protected function get_oldest_and_newest( $status_keys ) {
|
||||
|
||||
$oldest_and_newest = array();
|
||||
|
||||
foreach ( $status_keys as $status ) {
|
||||
$oldest_and_newest[ $status ] = array(
|
||||
'oldest' => '–',
|
||||
'newest' => '–',
|
||||
);
|
||||
|
||||
if ( 'in-progress' === $status ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$oldest_and_newest[ $status ]['oldest'] = $this->get_action_status_date( $status, 'oldest' );
|
||||
$oldest_and_newest[ $status ]['newest'] = $this->get_action_status_date( $status, 'newest' );
|
||||
}
|
||||
|
||||
return $oldest_and_newest;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get oldest or newest scheduled date for a given status.
|
||||
*
|
||||
* @param string $status Action status label/name string.
|
||||
* @param string $date_type Oldest or Newest.
|
||||
* @return DateTime
|
||||
*/
|
||||
protected function get_action_status_date( $status, $date_type = 'oldest' ) {
|
||||
|
||||
$order = 'oldest' === $date_type ? 'ASC' : 'DESC';
|
||||
|
||||
$action = $this->store->query_actions(
|
||||
array(
|
||||
'claimed' => false,
|
||||
'status' => $status,
|
||||
'per_page' => 1,
|
||||
'order' => $order,
|
||||
)
|
||||
);
|
||||
|
||||
if ( ! empty( $action ) ) {
|
||||
$date_object = $this->store->get_date( $action[0] );
|
||||
$action_date = $date_object->format( 'Y-m-d H:i:s O' );
|
||||
} else {
|
||||
$action_date = '–';
|
||||
}
|
||||
|
||||
return $action_date;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get oldest or newest scheduled date for a given status.
|
||||
*
|
||||
* @param array $status_labels Set of statuses to find oldest & newest action for.
|
||||
* @param array $action_counts Number of actions grouped by status.
|
||||
* @param array $oldest_and_newest Date of the oldest and newest action with each status.
|
||||
*/
|
||||
protected function get_template( $status_labels, $action_counts, $oldest_and_newest ) {
|
||||
$as_version = ActionScheduler_Versions::instance()->latest_version();
|
||||
$as_datastore = get_class( ActionScheduler_Store::instance() );
|
||||
?>
|
||||
|
||||
<table class="wc_status_table widefat" cellspacing="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="5" data-export-label="Action Scheduler"><h2><?php esc_html_e( 'Action Scheduler', 'action-scheduler' ); ?><?php echo wc_help_tip( esc_html__( 'This section shows details of Action Scheduler.', 'action-scheduler' ) ); ?></h2></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" data-export-label="Version"><?php esc_html_e( 'Version:', 'action-scheduler' ); ?></td>
|
||||
<td colspan="3"><?php echo esc_html( $as_version ); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" data-export-label="Data store"><?php esc_html_e( 'Data store:', 'action-scheduler' ); ?></td>
|
||||
<td colspan="3"><?php echo esc_html( $as_datastore ); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong><?php esc_html_e( 'Action Status', 'action-scheduler' ); ?></strong></td>
|
||||
<td class="help"> </td>
|
||||
<td><strong><?php esc_html_e( 'Count', 'action-scheduler' ); ?></strong></td>
|
||||
<td><strong><?php esc_html_e( 'Oldest Scheduled Date', 'action-scheduler' ); ?></strong></td>
|
||||
<td><strong><?php esc_html_e( 'Newest Scheduled Date', 'action-scheduler' ); ?></strong></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
foreach ( $action_counts as $status => $count ) {
|
||||
// WC uses the 3rd column for export, so we need to display more data in that (hidden when viewed as part of the table) and add an empty 2nd column.
|
||||
printf(
|
||||
'<tr><td>%1$s</td><td> </td><td>%2$s<span style="display: none;">, Oldest: %3$s, Newest: %4$s</span></td><td>%3$s</td><td>%4$s</td></tr>',
|
||||
esc_html( $status_labels[ $status ] ),
|
||||
esc_html( number_format_i18n( $count ) ),
|
||||
esc_html( $oldest_and_newest[ $status ]['oldest'] ),
|
||||
esc_html( $oldest_and_newest[ $status ]['newest'] )
|
||||
);
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
/**
|
||||
* Is triggered when invoking inaccessible methods in an object context.
|
||||
*
|
||||
* @param string $name Name of method called.
|
||||
* @param array $arguments Parameters to invoke the method with.
|
||||
*
|
||||
* @return mixed
|
||||
* @link https://php.net/manual/en/language.oop5.overloading.php#language.oop5.overloading.methods
|
||||
*/
|
||||
public function __call( $name, $arguments ) {
|
||||
switch ( $name ) {
|
||||
case 'print':
|
||||
_deprecated_function( __CLASS__ . '::print()', '2.2.4', __CLASS__ . '::render()' );
|
||||
return call_user_func_array( array( $this, 'render' ), $arguments );
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
@@ -0,0 +1,197 @@
|
||||
<?php
|
||||
|
||||
use Action_Scheduler\WP_CLI\ProgressBar;
|
||||
|
||||
/**
|
||||
* WP CLI Queue runner.
|
||||
*
|
||||
* This class can only be called from within a WP CLI instance.
|
||||
*/
|
||||
class ActionScheduler_WPCLI_QueueRunner extends ActionScheduler_Abstract_QueueRunner {
|
||||
|
||||
/** @var array */
|
||||
protected $actions;
|
||||
|
||||
/** @var ActionScheduler_ActionClaim */
|
||||
protected $claim;
|
||||
|
||||
/** @var \cli\progress\Bar */
|
||||
protected $progress_bar;
|
||||
|
||||
/**
|
||||
* ActionScheduler_WPCLI_QueueRunner constructor.
|
||||
*
|
||||
* @param ActionScheduler_Store $store
|
||||
* @param ActionScheduler_FatalErrorMonitor $monitor
|
||||
* @param ActionScheduler_QueueCleaner $cleaner
|
||||
*
|
||||
* @throws Exception When this is not run within WP CLI
|
||||
*/
|
||||
public function __construct( ActionScheduler_Store $store = null, ActionScheduler_FatalErrorMonitor $monitor = null, ActionScheduler_QueueCleaner $cleaner = null ) {
|
||||
if ( ! ( defined( 'WP_CLI' ) && WP_CLI ) ) {
|
||||
/* translators: %s php class name */
|
||||
throw new Exception( sprintf( __( 'The %s class can only be run within WP CLI.', 'action-scheduler' ), __CLASS__ ) );
|
||||
}
|
||||
|
||||
parent::__construct( $store, $monitor, $cleaner );
|
||||
}
|
||||
|
||||
/**
|
||||
* Set up the Queue before processing.
|
||||
*
|
||||
* @author Jeremy Pry
|
||||
*
|
||||
* @param int $batch_size The batch size to process.
|
||||
* @param array $hooks The hooks being used to filter the actions claimed in this batch.
|
||||
* @param string $group The group of actions to claim with this batch.
|
||||
* @param bool $force Whether to force running even with too many concurrent processes.
|
||||
*
|
||||
* @return int The number of actions that will be run.
|
||||
* @throws \WP_CLI\ExitException When there are too many concurrent batches.
|
||||
*/
|
||||
public function setup( $batch_size, $hooks = array(), $group = '', $force = false ) {
|
||||
$this->run_cleanup();
|
||||
$this->add_hooks();
|
||||
|
||||
// Check to make sure there aren't too many concurrent processes running.
|
||||
if ( $this->has_maximum_concurrent_batches() ) {
|
||||
if ( $force ) {
|
||||
WP_CLI::warning( __( 'There are too many concurrent batches, but the run is forced to continue.', 'action-scheduler' ) );
|
||||
} else {
|
||||
WP_CLI::error( __( 'There are too many concurrent batches.', 'action-scheduler' ) );
|
||||
}
|
||||
}
|
||||
|
||||
// Stake a claim and store it.
|
||||
$this->claim = $this->store->stake_claim( $batch_size, null, $hooks, $group );
|
||||
$this->monitor->attach( $this->claim );
|
||||
$this->actions = $this->claim->get_actions();
|
||||
|
||||
return count( $this->actions );
|
||||
}
|
||||
|
||||
/**
|
||||
* Add our hooks to the appropriate actions.
|
||||
*
|
||||
* @author Jeremy Pry
|
||||
*/
|
||||
protected function add_hooks() {
|
||||
add_action( 'action_scheduler_before_execute', array( $this, 'before_execute' ) );
|
||||
add_action( 'action_scheduler_after_execute', array( $this, 'after_execute' ), 10, 2 );
|
||||
add_action( 'action_scheduler_failed_execution', array( $this, 'action_failed' ), 10, 2 );
|
||||
}
|
||||
|
||||
/**
|
||||
* Set up the WP CLI progress bar.
|
||||
*
|
||||
* @author Jeremy Pry
|
||||
*/
|
||||
protected function setup_progress_bar() {
|
||||
$count = count( $this->actions );
|
||||
$this->progress_bar = new ProgressBar(
|
||||
/* translators: %d: amount of actions */
|
||||
sprintf( _n( 'Running %d action', 'Running %d actions', $count, 'action-scheduler' ), number_format_i18n( $count ) ),
|
||||
$count
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Process actions in the queue.
|
||||
*
|
||||
* @author Jeremy Pry
|
||||
*
|
||||
* @param string $context Optional runner context. Default 'WP CLI'.
|
||||
*
|
||||
* @return int The number of actions processed.
|
||||
*/
|
||||
public function run( $context = 'WP CLI' ) {
|
||||
do_action( 'action_scheduler_before_process_queue' );
|
||||
$this->setup_progress_bar();
|
||||
foreach ( $this->actions as $action_id ) {
|
||||
// Error if we lost the claim.
|
||||
if ( ! in_array( $action_id, $this->store->find_actions_by_claim_id( $this->claim->get_id() ) ) ) {
|
||||
WP_CLI::warning( __( 'The claim has been lost. Aborting current batch.', 'action-scheduler' ) );
|
||||
break;
|
||||
}
|
||||
|
||||
$this->process_action( $action_id, $context );
|
||||
$this->progress_bar->tick();
|
||||
}
|
||||
|
||||
$completed = $this->progress_bar->current();
|
||||
$this->progress_bar->finish();
|
||||
$this->store->release_claim( $this->claim );
|
||||
do_action( 'action_scheduler_after_process_queue' );
|
||||
|
||||
return $completed;
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle WP CLI message when the action is starting.
|
||||
*
|
||||
* @author Jeremy Pry
|
||||
*
|
||||
* @param $action_id
|
||||
*/
|
||||
public function before_execute( $action_id ) {
|
||||
/* translators: %s refers to the action ID */
|
||||
WP_CLI::log( sprintf( __( 'Started processing action %s', 'action-scheduler' ), $action_id ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle WP CLI message when the action has completed.
|
||||
*
|
||||
* @author Jeremy Pry
|
||||
*
|
||||
* @param int $action_id
|
||||
* @param null|ActionScheduler_Action $action The instance of the action. Default to null for backward compatibility.
|
||||
*/
|
||||
public function after_execute( $action_id, $action = null ) {
|
||||
// backward compatibility
|
||||
if ( null === $action ) {
|
||||
$action = $this->store->fetch_action( $action_id );
|
||||
}
|
||||
/* translators: 1: action ID 2: hook name */
|
||||
WP_CLI::log( sprintf( __( 'Completed processing action %1$s with hook: %2$s', 'action-scheduler' ), $action_id, $action->get_hook() ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle WP CLI message when the action has failed.
|
||||
*
|
||||
* @author Jeremy Pry
|
||||
*
|
||||
* @param int $action_id
|
||||
* @param Exception $exception
|
||||
* @throws \WP_CLI\ExitException With failure message.
|
||||
*/
|
||||
public function action_failed( $action_id, $exception ) {
|
||||
WP_CLI::error(
|
||||
/* translators: 1: action ID 2: exception message */
|
||||
sprintf( __( 'Error processing action %1$s: %2$s', 'action-scheduler' ), $action_id, $exception->getMessage() ),
|
||||
false
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sleep and help avoid hitting memory limit
|
||||
*
|
||||
* @param int $sleep_time Amount of seconds to sleep
|
||||
* @deprecated 3.0.0
|
||||
*/
|
||||
protected function stop_the_insanity( $sleep_time = 0 ) {
|
||||
_deprecated_function( 'ActionScheduler_WPCLI_QueueRunner::stop_the_insanity', '3.0.0', 'ActionScheduler_DataController::free_memory' );
|
||||
|
||||
ActionScheduler_DataController::free_memory();
|
||||
}
|
||||
|
||||
/**
|
||||
* Maybe trigger the stop_the_insanity() method to free up memory.
|
||||
*/
|
||||
protected function maybe_stop_the_insanity() {
|
||||
// The value returned by progress_bar->current() might be padded. Remove padding, and convert to int.
|
||||
$current_iteration = intval( trim( $this->progress_bar->current() ) );
|
||||
if ( 0 === $current_iteration % 50 ) {
|
||||
$this->stop_the_insanity();
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,188 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Commands for Action Scheduler.
|
||||
*/
|
||||
class ActionScheduler_WPCLI_Scheduler_command extends WP_CLI_Command {
|
||||
|
||||
/**
|
||||
* Force tables schema creation for Action Scheduler
|
||||
*
|
||||
* ## OPTIONS
|
||||
*
|
||||
* @param array $args Positional arguments.
|
||||
* @param array $assoc_args Keyed arguments.
|
||||
*
|
||||
* @subcommand fix-schema
|
||||
*/
|
||||
public function fix_schema( $args, $assoc_args ) {
|
||||
$schema_classes = array( ActionScheduler_LoggerSchema::class, ActionScheduler_StoreSchema::class );
|
||||
|
||||
foreach ( $schema_classes as $classname ) {
|
||||
if ( is_subclass_of( $classname, ActionScheduler_Abstract_Schema::class ) ) {
|
||||
$obj = new $classname();
|
||||
$obj->init();
|
||||
$obj->register_tables( true );
|
||||
|
||||
WP_CLI::success(
|
||||
sprintf(
|
||||
/* translators: %s refers to the schema name*/
|
||||
__( 'Registered schema for %s', 'action-scheduler' ),
|
||||
$classname
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Run the Action Scheduler
|
||||
*
|
||||
* ## OPTIONS
|
||||
*
|
||||
* [--batch-size=<size>]
|
||||
* : The maximum number of actions to run. Defaults to 100.
|
||||
*
|
||||
* [--batches=<size>]
|
||||
* : Limit execution to a number of batches. Defaults to 0, meaning batches will continue being executed until all actions are complete.
|
||||
*
|
||||
* [--cleanup-batch-size=<size>]
|
||||
* : The maximum number of actions to clean up. Defaults to the value of --batch-size.
|
||||
*
|
||||
* [--hooks=<hooks>]
|
||||
* : Only run actions with the specified hook. Omitting this option runs actions with any hook. Define multiple hooks as a comma separated string (without spaces), e.g. `--hooks=hook_one,hook_two,hook_three`
|
||||
*
|
||||
* [--group=<group>]
|
||||
* : Only run actions from the specified group. Omitting this option runs actions from all groups.
|
||||
*
|
||||
* [--free-memory-on=<count>]
|
||||
* : The number of actions to process between freeing memory. 0 disables freeing memory. Default 50.
|
||||
*
|
||||
* [--pause=<seconds>]
|
||||
* : The number of seconds to pause when freeing memory. Default no pause.
|
||||
*
|
||||
* [--force]
|
||||
* : Whether to force execution despite the maximum number of concurrent processes being exceeded.
|
||||
*
|
||||
* @param array $args Positional arguments.
|
||||
* @param array $assoc_args Keyed arguments.
|
||||
* @throws \WP_CLI\ExitException When an error occurs.
|
||||
*
|
||||
* @subcommand run
|
||||
*/
|
||||
public function run( $args, $assoc_args ) {
|
||||
// Handle passed arguments.
|
||||
$batch = absint( \WP_CLI\Utils\get_flag_value( $assoc_args, 'batch-size', 100 ) );
|
||||
$batches = absint( \WP_CLI\Utils\get_flag_value( $assoc_args, 'batches', 0 ) );
|
||||
$clean = absint( \WP_CLI\Utils\get_flag_value( $assoc_args, 'cleanup-batch-size', $batch ) );
|
||||
$hooks = explode( ',', WP_CLI\Utils\get_flag_value( $assoc_args, 'hooks', '' ) );
|
||||
$hooks = array_filter( array_map( 'trim', $hooks ) );
|
||||
$group = \WP_CLI\Utils\get_flag_value( $assoc_args, 'group', '' );
|
||||
$free_on = \WP_CLI\Utils\get_flag_value( $assoc_args, 'free-memory-on', 50 );
|
||||
$sleep = \WP_CLI\Utils\get_flag_value( $assoc_args, 'pause', 0 );
|
||||
$force = \WP_CLI\Utils\get_flag_value( $assoc_args, 'force', false );
|
||||
|
||||
ActionScheduler_DataController::set_free_ticks( $free_on );
|
||||
ActionScheduler_DataController::set_sleep_time( $sleep );
|
||||
|
||||
$batches_completed = 0;
|
||||
$actions_completed = 0;
|
||||
$unlimited = $batches === 0;
|
||||
|
||||
try {
|
||||
// Custom queue cleaner instance.
|
||||
$cleaner = new ActionScheduler_QueueCleaner( null, $clean );
|
||||
|
||||
// Get the queue runner instance
|
||||
$runner = new ActionScheduler_WPCLI_QueueRunner( null, null, $cleaner );
|
||||
|
||||
// Determine how many tasks will be run in the first batch.
|
||||
$total = $runner->setup( $batch, $hooks, $group, $force );
|
||||
|
||||
// Run actions for as long as possible.
|
||||
while ( $total > 0 ) {
|
||||
$this->print_total_actions( $total );
|
||||
$actions_completed += $runner->run();
|
||||
$batches_completed++;
|
||||
|
||||
// Maybe set up tasks for the next batch.
|
||||
$total = ( $unlimited || $batches_completed < $batches ) ? $runner->setup( $batch, $hooks, $group, $force ) : 0;
|
||||
}
|
||||
} catch ( Exception $e ) {
|
||||
$this->print_error( $e );
|
||||
}
|
||||
|
||||
$this->print_total_batches( $batches_completed );
|
||||
$this->print_success( $actions_completed );
|
||||
}
|
||||
|
||||
/**
|
||||
* Print WP CLI message about how many actions are about to be processed.
|
||||
*
|
||||
* @author Jeremy Pry
|
||||
*
|
||||
* @param int $total
|
||||
*/
|
||||
protected function print_total_actions( $total ) {
|
||||
WP_CLI::log(
|
||||
sprintf(
|
||||
/* translators: %d refers to how many scheduled taks were found to run */
|
||||
_n( 'Found %d scheduled task', 'Found %d scheduled tasks', $total, 'action-scheduler' ),
|
||||
number_format_i18n( $total )
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Print WP CLI message about how many batches of actions were processed.
|
||||
*
|
||||
* @author Jeremy Pry
|
||||
*
|
||||
* @param int $batches_completed
|
||||
*/
|
||||
protected function print_total_batches( $batches_completed ) {
|
||||
WP_CLI::log(
|
||||
sprintf(
|
||||
/* translators: %d refers to the total number of batches executed */
|
||||
_n( '%d batch executed.', '%d batches executed.', $batches_completed, 'action-scheduler' ),
|
||||
number_format_i18n( $batches_completed )
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert an exception into a WP CLI error.
|
||||
*
|
||||
* @author Jeremy Pry
|
||||
*
|
||||
* @param Exception $e The error object.
|
||||
*
|
||||
* @throws \WP_CLI\ExitException
|
||||
*/
|
||||
protected function print_error( Exception $e ) {
|
||||
WP_CLI::error(
|
||||
sprintf(
|
||||
/* translators: %s refers to the exception error message */
|
||||
__( 'There was an error running the action scheduler: %s', 'action-scheduler' ),
|
||||
$e->getMessage()
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Print a success message with the number of completed actions.
|
||||
*
|
||||
* @author Jeremy Pry
|
||||
*
|
||||
* @param int $actions_completed
|
||||
*/
|
||||
protected function print_success( $actions_completed ) {
|
||||
WP_CLI::success(
|
||||
sprintf(
|
||||
/* translators: %d refers to the total number of taskes completed */
|
||||
_n( '%d scheduled task completed.', '%d scheduled tasks completed.', $actions_completed, 'action-scheduler' ),
|
||||
number_format_i18n( $actions_completed )
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
@@ -0,0 +1,148 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Action_Scheduler\WP_CLI;
|
||||
|
||||
use Action_Scheduler\Migration\Config;
|
||||
use Action_Scheduler\Migration\Runner;
|
||||
use Action_Scheduler\Migration\Scheduler;
|
||||
use Action_Scheduler\Migration\Controller;
|
||||
use WP_CLI;
|
||||
use WP_CLI_Command;
|
||||
|
||||
/**
|
||||
* Class Migration_Command
|
||||
*
|
||||
* @package Action_Scheduler\WP_CLI
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class Migration_Command extends WP_CLI_Command {
|
||||
|
||||
/** @var int */
|
||||
private $total_processed = 0;
|
||||
|
||||
/**
|
||||
* Register the command with WP-CLI
|
||||
*/
|
||||
public function register() {
|
||||
if ( ! defined( 'WP_CLI' ) || ! WP_CLI ) {
|
||||
return;
|
||||
}
|
||||
|
||||
WP_CLI::add_command( 'action-scheduler migrate', [ $this, 'migrate' ], [
|
||||
'shortdesc' => 'Migrates actions to the DB tables store',
|
||||
'synopsis' => [
|
||||
[
|
||||
'type' => 'assoc',
|
||||
'name' => 'batch-size',
|
||||
'optional' => true,
|
||||
'default' => 100,
|
||||
'description' => 'The number of actions to process in each batch',
|
||||
],
|
||||
[
|
||||
'type' => 'assoc',
|
||||
'name' => 'free-memory-on',
|
||||
'optional' => true,
|
||||
'default' => 50,
|
||||
'description' => 'The number of actions to process between freeing memory. 0 disables freeing memory',
|
||||
],
|
||||
[
|
||||
'type' => 'assoc',
|
||||
'name' => 'pause',
|
||||
'optional' => true,
|
||||
'default' => 0,
|
||||
'description' => 'The number of seconds to pause when freeing memory',
|
||||
],
|
||||
[
|
||||
'type' => 'flag',
|
||||
'name' => 'dry-run',
|
||||
'optional' => true,
|
||||
'description' => 'Reports on the actions that would have been migrated, but does not change any data',
|
||||
],
|
||||
],
|
||||
] );
|
||||
}
|
||||
|
||||
/**
|
||||
* Process the data migration.
|
||||
*
|
||||
* @param array $positional_args Required for WP CLI. Not used in migration.
|
||||
* @param array $assoc_args Optional arguments.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function migrate( $positional_args, $assoc_args ) {
|
||||
$this->init_logging();
|
||||
|
||||
$config = $this->get_migration_config( $assoc_args );
|
||||
$runner = new Runner( $config );
|
||||
$runner->init_destination();
|
||||
|
||||
$batch_size = isset( $assoc_args[ 'batch-size' ] ) ? (int) $assoc_args[ 'batch-size' ] : 100;
|
||||
$free_on = isset( $assoc_args[ 'free-memory-on' ] ) ? (int) $assoc_args[ 'free-memory-on' ] : 50;
|
||||
$sleep = isset( $assoc_args[ 'pause' ] ) ? (int) $assoc_args[ 'pause' ] : 0;
|
||||
\ActionScheduler_DataController::set_free_ticks( $free_on );
|
||||
\ActionScheduler_DataController::set_sleep_time( $sleep );
|
||||
|
||||
do {
|
||||
$actions_processed = $runner->run( $batch_size );
|
||||
$this->total_processed += $actions_processed;
|
||||
} while ( $actions_processed > 0 );
|
||||
|
||||
if ( ! $config->get_dry_run() ) {
|
||||
// let the scheduler know that there's nothing left to do
|
||||
$scheduler = new Scheduler();
|
||||
$scheduler->mark_complete();
|
||||
}
|
||||
|
||||
WP_CLI::success( sprintf( '%s complete. %d actions processed.', $config->get_dry_run() ? 'Dry run' : 'Migration', $this->total_processed ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Build the config object used to create the Runner
|
||||
*
|
||||
* @param array $args Optional arguments.
|
||||
*
|
||||
* @return ActionScheduler\Migration\Config
|
||||
*/
|
||||
private function get_migration_config( $args ) {
|
||||
$args = wp_parse_args( $args, [
|
||||
'dry-run' => false,
|
||||
] );
|
||||
|
||||
$config = Controller::instance()->get_migration_config_object();
|
||||
$config->set_dry_run( ! empty( $args[ 'dry-run' ] ) );
|
||||
|
||||
return $config;
|
||||
}
|
||||
|
||||
/**
|
||||
* Hook command line logging into migration actions.
|
||||
*/
|
||||
private function init_logging() {
|
||||
add_action( 'action_scheduler/migrate_action_dry_run', function ( $action_id ) {
|
||||
WP_CLI::debug( sprintf( 'Dry-run: migrated action %d', $action_id ) );
|
||||
}, 10, 1 );
|
||||
add_action( 'action_scheduler/no_action_to_migrate', function ( $action_id ) {
|
||||
WP_CLI::debug( sprintf( 'No action found to migrate for ID %d', $action_id ) );
|
||||
}, 10, 1 );
|
||||
add_action( 'action_scheduler/migrate_action_failed', function ( $action_id ) {
|
||||
WP_CLI::warning( sprintf( 'Failed migrating action with ID %d', $action_id ) );
|
||||
}, 10, 1 );
|
||||
add_action( 'action_scheduler/migrate_action_incomplete', function ( $source_id, $destination_id ) {
|
||||
WP_CLI::warning( sprintf( 'Unable to remove source action with ID %d after migrating to new ID %d', $source_id, $destination_id ) );
|
||||
}, 10, 2 );
|
||||
add_action( 'action_scheduler/migrated_action', function ( $source_id, $destination_id ) {
|
||||
WP_CLI::debug( sprintf( 'Migrated source action with ID %d to new store with ID %d', $source_id, $destination_id ) );
|
||||
}, 10, 2 );
|
||||
add_action( 'action_scheduler/migration_batch_starting', function ( $batch ) {
|
||||
WP_CLI::debug( 'Beginning migration of batch: ' . print_r( $batch, true ) );
|
||||
}, 10, 1 );
|
||||
add_action( 'action_scheduler/migration_batch_complete', function ( $batch ) {
|
||||
WP_CLI::log( sprintf( 'Completed migration of %d actions', count( $batch ) ) );
|
||||
}, 10, 1 );
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user