mirror of
https://github.com/wp-graphql/wp-graphql-woocommerce.git
synced 2026-08-14 12:53:44 +02:00
testing-entrypoint script updated.
This commit is contained in:
@@ -113,6 +113,5 @@ after_success:
|
||||
wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.1.0/php-coveralls.phar
|
||||
chmod +x php-coveralls.phar
|
||||
|
||||
sed -i 's/\/var\/www\/html\/wp-content\/plugins\/wp-graphql-woocommerce\///g' tests/_output/coverage.xml
|
||||
travis_retry php php-coveralls.phar -v
|
||||
fi
|
||||
|
||||
+14
-6
@@ -14,18 +14,26 @@ LABEL author_uri=https://github.com/kidunot89
|
||||
|
||||
SHELL [ "/bin/bash", "-c" ]
|
||||
|
||||
# Redeclare ARGs and set as environmental variables for reuse.
|
||||
ARG DESIRED_WP_VERSION
|
||||
ARG DESIRED_PHP_VERSION
|
||||
ENV WP_VERSION=${DESIRED_WP_VERSION}
|
||||
ENV PHP_VERSION=${DESIRED_PHP_VERSION}
|
||||
|
||||
# Install php extensions
|
||||
RUN docker-php-ext-install pdo_mysql
|
||||
|
||||
# Install Xdebug
|
||||
RUN if [ "$DESIRED_PHP_VERSION" != "5.6" ] || [ "$DESIRED_PHP_VERSION" != "7.0" ]; then \
|
||||
apt-get install zip unzip -y && \
|
||||
pecl install pcov && \
|
||||
docker-php-ext-enable pcov && \
|
||||
rm -f /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini ;\
|
||||
# Install PCOV and XDebug
|
||||
RUN if [ "$PHP_VERSION" != "5.6" ] && [ "$PHP_VERSION" != "7.0" ]; then \
|
||||
apt-get install zip unzip -y && \
|
||||
pecl install pcov && \
|
||||
docker-php-ext-enable pcov && \
|
||||
rm -f /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
|
||||
echo "pcov.enabled=1" >> /usr/local/etc/php/php.ini ;\
|
||||
elif [ "$PHP_VERSION" == "5.6" ]; then \
|
||||
yes | pecl install xdebug-2.5.5; \
|
||||
else \
|
||||
yes | pecl install xdebug; \
|
||||
fi
|
||||
|
||||
# Install composer
|
||||
|
||||
+48
-26
@@ -1,5 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Processes parameters and runs Codeception.
|
||||
run_tests() {
|
||||
echo "Running Tests"
|
||||
if [ "$COVERAGE" == "1" ]; then
|
||||
local coverage="--coverage --coverage-xml"
|
||||
fi
|
||||
if [ "$DEBUG" == "1" ]; then
|
||||
local debug="--debug"
|
||||
fi
|
||||
|
||||
local suites=${1:-" ;"}
|
||||
IFS=';' read -ra target_suites <<< "$suites"
|
||||
for suite in "${target_suites[@]}"; do
|
||||
vendor/bin/codecept run -c codeception.dist.yml ${suite} ${coverage:-} ${debug:-} --no-exit
|
||||
done
|
||||
}
|
||||
|
||||
# Exits with a status of 0 (true) if provided version number is higher than proceeding numbers.
|
||||
function version_gt() {
|
||||
test "$(printf '%s\n' "$@" | sort -V | head -n 1)" != "$1";
|
||||
}
|
||||
|
||||
# Move to WordPress root folder
|
||||
workdir="$PWD"
|
||||
echo "Moving to WordPress root directory."
|
||||
@@ -30,43 +52,43 @@ fi
|
||||
# Install dependencies
|
||||
COMPOSER_MEMORY_LIMIT=-1 composer install --prefer-source --no-interaction
|
||||
|
||||
if [ "$DESIRED_PHP_VERSION" != "5.6" ] || [ "$DESIRED_PHP_VERSION" != "7.0" ] && [ "$COVERAGE" == "1" ]; then
|
||||
# Install pcov/clobber if PHP7.1+
|
||||
if version_gt $PHP_VERSION 7.0 && [[ "$COVERAGE" == "1" ]]; then
|
||||
echo "Installing pcov/clobber"
|
||||
COMPOSER_MEMORY_LIMIT=-1 composer require --dev pcov/clobber
|
||||
vendor/bin/pcov clobber
|
||||
elif [ "$COVERAGE" == "1" ]; then
|
||||
echo "Sorry, there is no PCOV support for this PHP ${PHP_VERSION} at this time"
|
||||
fi
|
||||
|
||||
# Set output permission
|
||||
echo "Setting Codeception output directory permissions"
|
||||
chmod 777 ${TESTS_OUTPUT}
|
||||
|
||||
run_tests() {
|
||||
local suites=${1:-" ;"}
|
||||
IFS=';' read -ra target_suites <<< "$suites"
|
||||
for suite in "${target_suites[@]}"; do
|
||||
if [ "$COVERAGE" == "1" -a "$DEBUG" == "1" ]; then
|
||||
php -d pcov.enabled=1 vendor/bin/codecept run \
|
||||
-c codeception.dist.yml ${suite} --debug --coverage --coverage-xml
|
||||
elif [ "$COVERAGE" == "1" ]; then
|
||||
php -d pcov.enabled=1 vendor/bin/codecept run \
|
||||
-c codeception.dist.yml ${suite} --coverage --coverage-xml
|
||||
elif [ "$DEBUG" == "1" ]; then
|
||||
vendor/bin/codecept run -c codeception.dist.yml ${suite} --debug
|
||||
else
|
||||
vendor/bin/codecept run -c codeception.dist.yml ${suite}
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
# Run tests
|
||||
run_tests ${SUITES}
|
||||
|
||||
|
||||
if [ -f "${TESTS_OUTPUT}" ]; then
|
||||
# Fix codecoverage permissions and clean coverage.xml
|
||||
if [ -f "${TESTS_OUTPUT}/coverage.xml" ] && [[ "$COVERAGE" == "1" ]]; then
|
||||
echo 'Setting "coverage.xml" permissions'.
|
||||
chmod 777 -R ${TESTS_OUTPUT}/coverage.xml
|
||||
chmod 777 -R "$TESTS_OUTPUT"/coverage.xml
|
||||
|
||||
echo 'Cleaning coverage.xml for deployment'.
|
||||
pattern="$PROJECT_DIR/"
|
||||
sed -i "s~$pattern~~g" "$TESTS_OUTPUT"/coverage.xml
|
||||
|
||||
# Remove pcov/clobber
|
||||
if version_gt $PHP_VERSION 7.0; then
|
||||
echo 'Removing pcov/clobber.'
|
||||
vendor/bin/pcov unclobber
|
||||
COMPOSER_MEMORY_LIMIT=-1 composer remove --dev pcov/clobber
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$COVERAGE" == "1" ]; then
|
||||
echo 'Removing pcov/clobber.'
|
||||
vendor/bin/pcov unclobber
|
||||
COMPOSER_MEMORY_LIMIT=-1 composer remove --dev pcov/clobber
|
||||
if [ -f "${TESTS_OUTPUT}/failed" ]; then
|
||||
echo "Uh oh, some went wrong."
|
||||
exit 1
|
||||
else
|
||||
echo "Woohoo! It's working!"
|
||||
exit 0
|
||||
fi
|
||||
Vendored
-7
@@ -1,7 +0,0 @@
|
||||
<?php
|
||||
|
||||
// autoload.php @generated by Composer
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit97f27b844ca1dee10b117f9ca0f33148::getLoader();
|
||||
Vendored
-445
@@ -1,445 +0,0 @@
|
||||
<?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', $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;
|
||||
}
|
||||
Vendored
-21
@@ -1,21 +0,0 @@
|
||||
|
||||
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.
|
||||
|
||||
-126
@@ -1,126 +0,0 @@
|
||||
<?php
|
||||
|
||||
// autoload_classmap.php @generated by Composer
|
||||
|
||||
$vendorDir = dirname(dirname(__FILE__));
|
||||
$baseDir = dirname($vendorDir);
|
||||
|
||||
return array(
|
||||
'WPGraphQL\\WooCommerce\\ACF_Schema_Filters' => $baseDir . '/includes/class-acf-schema-filters.php',
|
||||
'WPGraphQL\\WooCommerce\\Connection\\Cart_Items' => $baseDir . '/includes/connection/class-cart-items.php',
|
||||
'WPGraphQL\\WooCommerce\\Connection\\Coupons' => $baseDir . '/includes/connection/class-coupons.php',
|
||||
'WPGraphQL\\WooCommerce\\Connection\\Customers' => $baseDir . '/includes/connection/class-customers.php',
|
||||
'WPGraphQL\\WooCommerce\\Connection\\Order_Items' => $baseDir . '/includes/connection/class-order-items.php',
|
||||
'WPGraphQL\\WooCommerce\\Connection\\Orders' => $baseDir . '/includes/connection/class-orders.php',
|
||||
'WPGraphQL\\WooCommerce\\Connection\\Payment_Gateways' => $baseDir . '/includes/connection/class-payment-gateways.php',
|
||||
'WPGraphQL\\WooCommerce\\Connection\\Posts' => $baseDir . '/includes/connection/class-posts.php',
|
||||
'WPGraphQL\\WooCommerce\\Connection\\Product_Attributes' => $baseDir . '/includes/connection/class-product-attributes.php',
|
||||
'WPGraphQL\\WooCommerce\\Connection\\Products' => $baseDir . '/includes/connection/class-products.php',
|
||||
'WPGraphQL\\WooCommerce\\Connection\\Refunds' => $baseDir . '/includes/connection/class-refunds.php',
|
||||
'WPGraphQL\\WooCommerce\\Connection\\Shipping_Methods' => $baseDir . '/includes/connection/class-shipping-methods.php',
|
||||
'WPGraphQL\\WooCommerce\\Connection\\Tax_Rates' => $baseDir . '/includes/connection/class-tax-rates.php',
|
||||
'WPGraphQL\\WooCommerce\\Connection\\Variation_Attributes' => $baseDir . '/includes/connection/class-variation-attributes.php',
|
||||
'WPGraphQL\\WooCommerce\\Connection\\WC_Terms' => $baseDir . '/includes/connection/class-wc-terms.php',
|
||||
'WPGraphQL\\WooCommerce\\Core_Schema_Filters' => $baseDir . '/includes/class-core-schema-filters.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Connection\\Cart_Item_Connection_Resolver' => $baseDir . '/includes/data/connection/class-cart-item-connection-resolver.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Connection\\Common_CPT_Input_Sanitize_Functions' => $baseDir . '/includes/data/connection/trait-common-cpt-args-processing.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Connection\\Coupon_Connection_Resolver' => $baseDir . '/includes/data/connection/class-coupon-connection-resolver.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Connection\\Customer_Connection_Resolver' => $baseDir . '/includes/data/connection/class-customer-connection-resolver.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Connection\\Order_Connection_Resolver' => $baseDir . '/includes/data/connection/class-order-connection-resolver.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Connection\\Order_Item_Connection_Resolver' => $baseDir . '/includes/data/connection/class-order-item-connection-resolver.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Connection\\Payment_Gateway_Connection_Resolver' => $baseDir . '/includes/data/connection/class-payment-gateway-connection-resolver.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Connection\\Post_Connection_Resolver' => $baseDir . '/includes/data/connection/class-post-connection-resolver.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Connection\\Product_Attribute_Connection_Resolver' => $baseDir . '/includes/data/connection/class-product-attribute-connection-resolver.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Connection\\Product_Connection_Resolver' => $baseDir . '/includes/data/connection/class-product-connection-resolver.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Connection\\Refund_Connection_Resolver' => $baseDir . '/includes/data/connection/class-refund-connection-resolver.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Connection\\Shipping_Method_Connection_Resolver' => $baseDir . '/includes/data/connection/class-shipping-method-connection-resolver.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Connection\\Tax_Rate_Connection_Resolver' => $baseDir . '/includes/data/connection/class-tax-rate-connection-resolver.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Connection\\Variation_Attribute_Connection_Resolver' => $baseDir . '/includes/data/connection/class-variation-attribute-connection-resolver.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Connection\\WC_Terms_Connection_Resolver' => $baseDir . '/includes/data/connection/class-wc-terms-connection-resolver.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Factory' => $baseDir . '/includes/data/class-factory.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Loader\\WC_Customer_Loader' => $baseDir . '/includes/data/loader/class-wc-customer-loader.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Loader\\WC_Post_Crud_Loader' => $baseDir . '/includes/data/loader/class-wc-post-crud-loader.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Mutation\\Cart_Mutation' => $baseDir . '/includes/data/mutation/class-cart-mutation.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Mutation\\Checkout_Mutation' => $baseDir . '/includes/data/mutation/class-checkout-mutation.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Mutation\\Customer_Mutation' => $baseDir . '/includes/data/mutation/class-customer-mutation.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Mutation\\Order_Mutation' => $baseDir . '/includes/data/mutation/class-order-mutation.php',
|
||||
'WPGraphQL\\WooCommerce\\JWT_Auth_Schema_Filters' => $baseDir . '/includes/class-jwt-auth-schema-filters.php',
|
||||
'WPGraphQL\\WooCommerce\\Model\\Coupon' => $baseDir . '/includes/model/class-coupon.php',
|
||||
'WPGraphQL\\WooCommerce\\Model\\Crud_CPT' => $baseDir . '/includes/model/class-crud-cpt.php',
|
||||
'WPGraphQL\\WooCommerce\\Model\\Customer' => $baseDir . '/includes/model/class-customer.php',
|
||||
'WPGraphQL\\WooCommerce\\Model\\Order' => $baseDir . '/includes/model/class-order.php',
|
||||
'WPGraphQL\\WooCommerce\\Model\\Order_Item' => $baseDir . '/includes/model/class-order-item.php',
|
||||
'WPGraphQL\\WooCommerce\\Model\\Product' => $baseDir . '/includes/model/class-product.php',
|
||||
'WPGraphQL\\WooCommerce\\Model\\Product_Variation' => $baseDir . '/includes/model/class-product-variation.php',
|
||||
'WPGraphQL\\WooCommerce\\Model\\Refund' => $baseDir . '/includes/model/class-refund.php',
|
||||
'WPGraphQL\\WooCommerce\\Model\\Shipping_Method' => $baseDir . '/includes/model/class-shipping-method.php',
|
||||
'WPGraphQL\\WooCommerce\\Model\\Shop_Manager_Caps' => $baseDir . '/includes/model/trait-shop-manager-caps.php',
|
||||
'WPGraphQL\\WooCommerce\\Model\\Tax_Rate' => $baseDir . '/includes/model/class-tax-rate.php',
|
||||
'WPGraphQL\\WooCommerce\\Mutation\\Cart_Add_Fee' => $baseDir . '/includes/mutation/class-cart-add-fee.php',
|
||||
'WPGraphQL\\WooCommerce\\Mutation\\Cart_Add_Item' => $baseDir . '/includes/mutation/class-cart-add-item.php',
|
||||
'WPGraphQL\\WooCommerce\\Mutation\\Cart_Apply_Coupon' => $baseDir . '/includes/mutation/class-cart-apply-coupon.php',
|
||||
'WPGraphQL\\WooCommerce\\Mutation\\Cart_Empty' => $baseDir . '/includes/mutation/class-cart-empty.php',
|
||||
'WPGraphQL\\WooCommerce\\Mutation\\Cart_Remove_Coupons' => $baseDir . '/includes/mutation/class-cart-remove-coupons.php',
|
||||
'WPGraphQL\\WooCommerce\\Mutation\\Cart_Remove_Items' => $baseDir . '/includes/mutation/class-cart-remove-items.php',
|
||||
'WPGraphQL\\WooCommerce\\Mutation\\Cart_Restore_Items' => $baseDir . '/includes/mutation/class-cart-restore-items.php',
|
||||
'WPGraphQL\\WooCommerce\\Mutation\\Cart_Update_Item_Quantities' => $baseDir . '/includes/mutation/class-cart-update-item-quantities.php',
|
||||
'WPGraphQL\\WooCommerce\\Mutation\\Checkout' => $baseDir . '/includes/mutation/class-checkout.php',
|
||||
'WPGraphQL\\WooCommerce\\Mutation\\Customer_Register' => $baseDir . '/includes/mutation/class-customer-register.php',
|
||||
'WPGraphQL\\WooCommerce\\Mutation\\Customer_Update' => $baseDir . '/includes/mutation/class-customer-update.php',
|
||||
'WPGraphQL\\WooCommerce\\Mutation\\Order_Create' => $baseDir . '/includes/mutation/class-order-create.php',
|
||||
'WPGraphQL\\WooCommerce\\Mutation\\Order_Delete' => $baseDir . '/includes/mutation/class-order-delete.php',
|
||||
'WPGraphQL\\WooCommerce\\Mutation\\Order_Delete_Items' => $baseDir . '/includes/mutation/class-order-delete-items.php',
|
||||
'WPGraphQL\\WooCommerce\\Mutation\\Order_Update' => $baseDir . '/includes/mutation/class-order-update.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPEnum\\Backorders' => $baseDir . '/includes/type/enum/class-backorders.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPEnum\\Catalog_Visibility' => $baseDir . '/includes/type/enum/class-catalog-visibility.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPEnum\\Countries' => $baseDir . '/includes/type/enum/class-countries.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPEnum\\Customer_Connection_Orderby_Enum' => $baseDir . '/includes/type/enum/class-customer-connection-orderby-enum.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPEnum\\Discount_Type' => $baseDir . '/includes/type/enum/class-discount-type.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPEnum\\Manage_Stock' => $baseDir . '/includes/type/enum/class-manage-stock.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPEnum\\Order_Status' => $baseDir . '/includes/type/enum/class-order-status.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPEnum\\Orders_Orderby_Enum' => $baseDir . '/includes/type/enum/class-orders-orderby-enum.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPEnum\\Post_Type_Orderby_Enum' => $baseDir . '/includes/type/enum/class-post-type-orderby-enum.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPEnum\\Pricing_Field_Format' => $baseDir . '/includes/type/enum/class-pricing-field-format.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPEnum\\Product_Taxonomy' => $baseDir . '/includes/type/enum/class-product-taxonomy.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPEnum\\Product_Types' => $baseDir . '/includes/type/enum/class-product-types.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPEnum\\Products_Orderby_Enum' => $baseDir . '/includes/type/enum/class-products-orderby-enum.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPEnum\\Stock_Status' => $baseDir . '/includes/type/enum/class-stock-status.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPEnum\\Tax_Class' => $baseDir . '/includes/type/enum/class-tax-class.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPEnum\\Tax_Rate_Connection_Orderby_Enum' => $baseDir . '/includes/type/enum/class-tax-rate-connection-orderby-enum.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPEnum\\Tax_Status' => $baseDir . '/includes/type/enum/class-tax-status.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPEnum\\Taxonomy_Operator' => $baseDir . '/includes/type/enum/class-taxonomy-operator.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPInputObject\\Cart_Item_Quantity_Input' => $baseDir . '/includes/type/input/class-cart-item-quantity-input.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPInputObject\\Create_Account_Input' => $baseDir . '/includes/type/input/class-create-account-input.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPInputObject\\Customer_Address_Input' => $baseDir . '/includes/type/input/class-customer-address-input.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPInputObject\\Fee_Line_Input' => $baseDir . '/includes/type/input/class-fee-line-input.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPInputObject\\Line_Item_Input' => $baseDir . '/includes/type/input/class-line-item-input.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPInputObject\\Meta_Data_Input' => $baseDir . '/includes/type/input/class-meta-data-input.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPInputObject\\Orderby_Inputs' => $baseDir . '/includes/type/input/class-orderby-inputs.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPInputObject\\Product_Attribute_Input' => $baseDir . '/includes/type/input/class-product-attribute-input.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPInputObject\\Product_Taxonomy_Filter_Input' => $baseDir . '/includes/type/input/class-product-taxonomy-filter-input.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPInputObject\\Product_Taxonomy_Filter_Relation_Input' => $baseDir . '/includes/type/input/class-product-taxonomy-filter-relation-input.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPInputObject\\Shipping_Line_Input' => $baseDir . '/includes/type/input/class-shipping-line-input.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPInputObject\\Tax_Rate_Connection_Orderby_Input' => $baseDir . '/includes/type/input/class-tax-rate-connection-orderby-input.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPInterface\\Product' => $baseDir . '/includes/type/interface/class-product.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPObject\\Cart_Type' => $baseDir . '/includes/type/object/class-cart-type.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPObject\\Coupon_Type' => $baseDir . '/includes/type/object/class-coupon-type.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPObject\\Customer_Address_Type' => $baseDir . '/includes/type/object/class-customer-address-type.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPObject\\Customer_Type' => $baseDir . '/includes/type/object/class-customer-type.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPObject\\Meta_Data_Type' => $baseDir . '/includes/type/object/class-meta-data-type.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPObject\\Order_Item_Type' => $baseDir . '/includes/type/object/class-order-item-type.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPObject\\Order_Type' => $baseDir . '/includes/type/object/class-order-type.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPObject\\Payment_Gateway_Type' => $baseDir . '/includes/type/object/class-payment-gateway-type.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPObject\\Product_Attribute_Type' => $baseDir . '/includes/type/object/class-product-attribute-type.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPObject\\Product_Category_Type' => $baseDir . '/includes/type/object/class-product-category-type.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPObject\\Product_Download_Type' => $baseDir . '/includes/type/object/class-product-download-type.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPObject\\Product_Types' => $baseDir . '/includes/type/object/class-product-types.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPObject\\Product_Variation_Type' => $baseDir . '/includes/type/object/class-product-variation-type.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPObject\\Refund_Type' => $baseDir . '/includes/type/object/class-refund-type.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPObject\\Shipping_Method_Type' => $baseDir . '/includes/type/object/class-shipping-method-type.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPObject\\Tax_Rate_Type' => $baseDir . '/includes/type/object/class-tax-rate-type.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPObject\\Variation_Attribute_Type' => $baseDir . '/includes/type/object/class-variation-attribute-type.php',
|
||||
'WPGraphQL\\WooCommerce\\Type_Registry' => $baseDir . '/includes/class-type-registry.php',
|
||||
'WPGraphQL\\WooCommerce\\Utils\\QL_Session_Handler' => $baseDir . '/includes/utils/class-ql-session-handler.php',
|
||||
'WPGraphQL\\WooCommerce\\WooCommerce_Filters' => $baseDir . '/includes/class-woocommerce-filters.php',
|
||||
'WP_GraphQL_WooCommerce' => $baseDir . '/includes/class-wp-graphql-woocommerce.php',
|
||||
);
|
||||
Vendored
-11
@@ -1,11 +0,0 @@
|
||||
<?php
|
||||
|
||||
// autoload_files.php @generated by Composer
|
||||
|
||||
$vendorDir = dirname(dirname(__FILE__));
|
||||
$baseDir = dirname($vendorDir);
|
||||
|
||||
return array(
|
||||
'914b07b8cf678ed0b81bfdb5d23b4f2b' => $baseDir . '/includes/connection/common-post-type-args.php',
|
||||
'45a15019e901000ab8608c03ebff44fb' => $baseDir . '/includes/functions.php',
|
||||
);
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
<?php
|
||||
|
||||
// autoload_namespaces.php @generated by Composer
|
||||
|
||||
$vendorDir = dirname(dirname(__FILE__));
|
||||
$baseDir = dirname($vendorDir);
|
||||
|
||||
return array(
|
||||
);
|
||||
Vendored
-10
@@ -1,10 +0,0 @@
|
||||
<?php
|
||||
|
||||
// autoload_psr4.php @generated by Composer
|
||||
|
||||
$vendorDir = dirname(dirname(__FILE__));
|
||||
$baseDir = dirname($vendorDir);
|
||||
|
||||
return array(
|
||||
'WPGraphQL\\WooCommerce\\' => array($baseDir . '/includes'),
|
||||
);
|
||||
Vendored
-70
@@ -1,70 +0,0 @@
|
||||
<?php
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit97f27b844ca1dee10b117f9ca0f33148
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
public static function loadClassLoader($class)
|
||||
{
|
||||
if ('Composer\Autoload\ClassLoader' === $class) {
|
||||
require __DIR__ . '/ClassLoader.php';
|
||||
}
|
||||
}
|
||||
|
||||
public static function getLoader()
|
||||
{
|
||||
if (null !== self::$loader) {
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit97f27b844ca1dee10b117f9ca0f33148', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit97f27b844ca1dee10b117f9ca0f33148', '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\ComposerStaticInit97f27b844ca1dee10b117f9ca0f33148::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\ComposerStaticInit97f27b844ca1dee10b117f9ca0f33148::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire97f27b844ca1dee10b117f9ca0f33148($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
||||
|
||||
function composerRequire97f27b844ca1dee10b117f9ca0f33148($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
require $file;
|
||||
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
}
|
||||
}
|
||||
Vendored
-157
@@ -1,157 +0,0 @@
|
||||
<?php
|
||||
|
||||
// autoload_static.php @generated by Composer
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInit97f27b844ca1dee10b117f9ca0f33148
|
||||
{
|
||||
public static $files = array (
|
||||
'914b07b8cf678ed0b81bfdb5d23b4f2b' => __DIR__ . '/../..' . '/includes/connection/common-post-type-args.php',
|
||||
'45a15019e901000ab8608c03ebff44fb' => __DIR__ . '/../..' . '/includes/functions.php',
|
||||
);
|
||||
|
||||
public static $prefixLengthsPsr4 = array (
|
||||
'W' =>
|
||||
array (
|
||||
'WPGraphQL\\WooCommerce\\' => 22,
|
||||
),
|
||||
);
|
||||
|
||||
public static $prefixDirsPsr4 = array (
|
||||
'WPGraphQL\\WooCommerce\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/../..' . '/includes',
|
||||
),
|
||||
);
|
||||
|
||||
public static $classMap = array (
|
||||
'WPGraphQL\\WooCommerce\\ACF_Schema_Filters' => __DIR__ . '/../..' . '/includes/class-acf-schema-filters.php',
|
||||
'WPGraphQL\\WooCommerce\\Connection\\Cart_Items' => __DIR__ . '/../..' . '/includes/connection/class-cart-items.php',
|
||||
'WPGraphQL\\WooCommerce\\Connection\\Coupons' => __DIR__ . '/../..' . '/includes/connection/class-coupons.php',
|
||||
'WPGraphQL\\WooCommerce\\Connection\\Customers' => __DIR__ . '/../..' . '/includes/connection/class-customers.php',
|
||||
'WPGraphQL\\WooCommerce\\Connection\\Order_Items' => __DIR__ . '/../..' . '/includes/connection/class-order-items.php',
|
||||
'WPGraphQL\\WooCommerce\\Connection\\Orders' => __DIR__ . '/../..' . '/includes/connection/class-orders.php',
|
||||
'WPGraphQL\\WooCommerce\\Connection\\Payment_Gateways' => __DIR__ . '/../..' . '/includes/connection/class-payment-gateways.php',
|
||||
'WPGraphQL\\WooCommerce\\Connection\\Posts' => __DIR__ . '/../..' . '/includes/connection/class-posts.php',
|
||||
'WPGraphQL\\WooCommerce\\Connection\\Product_Attributes' => __DIR__ . '/../..' . '/includes/connection/class-product-attributes.php',
|
||||
'WPGraphQL\\WooCommerce\\Connection\\Products' => __DIR__ . '/../..' . '/includes/connection/class-products.php',
|
||||
'WPGraphQL\\WooCommerce\\Connection\\Refunds' => __DIR__ . '/../..' . '/includes/connection/class-refunds.php',
|
||||
'WPGraphQL\\WooCommerce\\Connection\\Shipping_Methods' => __DIR__ . '/../..' . '/includes/connection/class-shipping-methods.php',
|
||||
'WPGraphQL\\WooCommerce\\Connection\\Tax_Rates' => __DIR__ . '/../..' . '/includes/connection/class-tax-rates.php',
|
||||
'WPGraphQL\\WooCommerce\\Connection\\Variation_Attributes' => __DIR__ . '/../..' . '/includes/connection/class-variation-attributes.php',
|
||||
'WPGraphQL\\WooCommerce\\Connection\\WC_Terms' => __DIR__ . '/../..' . '/includes/connection/class-wc-terms.php',
|
||||
'WPGraphQL\\WooCommerce\\Core_Schema_Filters' => __DIR__ . '/../..' . '/includes/class-core-schema-filters.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Connection\\Cart_Item_Connection_Resolver' => __DIR__ . '/../..' . '/includes/data/connection/class-cart-item-connection-resolver.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Connection\\Common_CPT_Input_Sanitize_Functions' => __DIR__ . '/../..' . '/includes/data/connection/trait-common-cpt-args-processing.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Connection\\Coupon_Connection_Resolver' => __DIR__ . '/../..' . '/includes/data/connection/class-coupon-connection-resolver.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Connection\\Customer_Connection_Resolver' => __DIR__ . '/../..' . '/includes/data/connection/class-customer-connection-resolver.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Connection\\Order_Connection_Resolver' => __DIR__ . '/../..' . '/includes/data/connection/class-order-connection-resolver.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Connection\\Order_Item_Connection_Resolver' => __DIR__ . '/../..' . '/includes/data/connection/class-order-item-connection-resolver.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Connection\\Payment_Gateway_Connection_Resolver' => __DIR__ . '/../..' . '/includes/data/connection/class-payment-gateway-connection-resolver.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Connection\\Post_Connection_Resolver' => __DIR__ . '/../..' . '/includes/data/connection/class-post-connection-resolver.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Connection\\Product_Attribute_Connection_Resolver' => __DIR__ . '/../..' . '/includes/data/connection/class-product-attribute-connection-resolver.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Connection\\Product_Connection_Resolver' => __DIR__ . '/../..' . '/includes/data/connection/class-product-connection-resolver.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Connection\\Refund_Connection_Resolver' => __DIR__ . '/../..' . '/includes/data/connection/class-refund-connection-resolver.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Connection\\Shipping_Method_Connection_Resolver' => __DIR__ . '/../..' . '/includes/data/connection/class-shipping-method-connection-resolver.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Connection\\Tax_Rate_Connection_Resolver' => __DIR__ . '/../..' . '/includes/data/connection/class-tax-rate-connection-resolver.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Connection\\Variation_Attribute_Connection_Resolver' => __DIR__ . '/../..' . '/includes/data/connection/class-variation-attribute-connection-resolver.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Connection\\WC_Terms_Connection_Resolver' => __DIR__ . '/../..' . '/includes/data/connection/class-wc-terms-connection-resolver.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Factory' => __DIR__ . '/../..' . '/includes/data/class-factory.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Loader\\WC_Customer_Loader' => __DIR__ . '/../..' . '/includes/data/loader/class-wc-customer-loader.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Loader\\WC_Post_Crud_Loader' => __DIR__ . '/../..' . '/includes/data/loader/class-wc-post-crud-loader.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Mutation\\Cart_Mutation' => __DIR__ . '/../..' . '/includes/data/mutation/class-cart-mutation.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Mutation\\Checkout_Mutation' => __DIR__ . '/../..' . '/includes/data/mutation/class-checkout-mutation.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Mutation\\Customer_Mutation' => __DIR__ . '/../..' . '/includes/data/mutation/class-customer-mutation.php',
|
||||
'WPGraphQL\\WooCommerce\\Data\\Mutation\\Order_Mutation' => __DIR__ . '/../..' . '/includes/data/mutation/class-order-mutation.php',
|
||||
'WPGraphQL\\WooCommerce\\JWT_Auth_Schema_Filters' => __DIR__ . '/../..' . '/includes/class-jwt-auth-schema-filters.php',
|
||||
'WPGraphQL\\WooCommerce\\Model\\Coupon' => __DIR__ . '/../..' . '/includes/model/class-coupon.php',
|
||||
'WPGraphQL\\WooCommerce\\Model\\Crud_CPT' => __DIR__ . '/../..' . '/includes/model/class-crud-cpt.php',
|
||||
'WPGraphQL\\WooCommerce\\Model\\Customer' => __DIR__ . '/../..' . '/includes/model/class-customer.php',
|
||||
'WPGraphQL\\WooCommerce\\Model\\Order' => __DIR__ . '/../..' . '/includes/model/class-order.php',
|
||||
'WPGraphQL\\WooCommerce\\Model\\Order_Item' => __DIR__ . '/../..' . '/includes/model/class-order-item.php',
|
||||
'WPGraphQL\\WooCommerce\\Model\\Product' => __DIR__ . '/../..' . '/includes/model/class-product.php',
|
||||
'WPGraphQL\\WooCommerce\\Model\\Product_Variation' => __DIR__ . '/../..' . '/includes/model/class-product-variation.php',
|
||||
'WPGraphQL\\WooCommerce\\Model\\Refund' => __DIR__ . '/../..' . '/includes/model/class-refund.php',
|
||||
'WPGraphQL\\WooCommerce\\Model\\Shipping_Method' => __DIR__ . '/../..' . '/includes/model/class-shipping-method.php',
|
||||
'WPGraphQL\\WooCommerce\\Model\\Shop_Manager_Caps' => __DIR__ . '/../..' . '/includes/model/trait-shop-manager-caps.php',
|
||||
'WPGraphQL\\WooCommerce\\Model\\Tax_Rate' => __DIR__ . '/../..' . '/includes/model/class-tax-rate.php',
|
||||
'WPGraphQL\\WooCommerce\\Mutation\\Cart_Add_Fee' => __DIR__ . '/../..' . '/includes/mutation/class-cart-add-fee.php',
|
||||
'WPGraphQL\\WooCommerce\\Mutation\\Cart_Add_Item' => __DIR__ . '/../..' . '/includes/mutation/class-cart-add-item.php',
|
||||
'WPGraphQL\\WooCommerce\\Mutation\\Cart_Apply_Coupon' => __DIR__ . '/../..' . '/includes/mutation/class-cart-apply-coupon.php',
|
||||
'WPGraphQL\\WooCommerce\\Mutation\\Cart_Empty' => __DIR__ . '/../..' . '/includes/mutation/class-cart-empty.php',
|
||||
'WPGraphQL\\WooCommerce\\Mutation\\Cart_Remove_Coupons' => __DIR__ . '/../..' . '/includes/mutation/class-cart-remove-coupons.php',
|
||||
'WPGraphQL\\WooCommerce\\Mutation\\Cart_Remove_Items' => __DIR__ . '/../..' . '/includes/mutation/class-cart-remove-items.php',
|
||||
'WPGraphQL\\WooCommerce\\Mutation\\Cart_Restore_Items' => __DIR__ . '/../..' . '/includes/mutation/class-cart-restore-items.php',
|
||||
'WPGraphQL\\WooCommerce\\Mutation\\Cart_Update_Item_Quantities' => __DIR__ . '/../..' . '/includes/mutation/class-cart-update-item-quantities.php',
|
||||
'WPGraphQL\\WooCommerce\\Mutation\\Checkout' => __DIR__ . '/../..' . '/includes/mutation/class-checkout.php',
|
||||
'WPGraphQL\\WooCommerce\\Mutation\\Customer_Register' => __DIR__ . '/../..' . '/includes/mutation/class-customer-register.php',
|
||||
'WPGraphQL\\WooCommerce\\Mutation\\Customer_Update' => __DIR__ . '/../..' . '/includes/mutation/class-customer-update.php',
|
||||
'WPGraphQL\\WooCommerce\\Mutation\\Order_Create' => __DIR__ . '/../..' . '/includes/mutation/class-order-create.php',
|
||||
'WPGraphQL\\WooCommerce\\Mutation\\Order_Delete' => __DIR__ . '/../..' . '/includes/mutation/class-order-delete.php',
|
||||
'WPGraphQL\\WooCommerce\\Mutation\\Order_Delete_Items' => __DIR__ . '/../..' . '/includes/mutation/class-order-delete-items.php',
|
||||
'WPGraphQL\\WooCommerce\\Mutation\\Order_Update' => __DIR__ . '/../..' . '/includes/mutation/class-order-update.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPEnum\\Backorders' => __DIR__ . '/../..' . '/includes/type/enum/class-backorders.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPEnum\\Catalog_Visibility' => __DIR__ . '/../..' . '/includes/type/enum/class-catalog-visibility.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPEnum\\Countries' => __DIR__ . '/../..' . '/includes/type/enum/class-countries.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPEnum\\Customer_Connection_Orderby_Enum' => __DIR__ . '/../..' . '/includes/type/enum/class-customer-connection-orderby-enum.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPEnum\\Discount_Type' => __DIR__ . '/../..' . '/includes/type/enum/class-discount-type.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPEnum\\Manage_Stock' => __DIR__ . '/../..' . '/includes/type/enum/class-manage-stock.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPEnum\\Order_Status' => __DIR__ . '/../..' . '/includes/type/enum/class-order-status.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPEnum\\Orders_Orderby_Enum' => __DIR__ . '/../..' . '/includes/type/enum/class-orders-orderby-enum.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPEnum\\Post_Type_Orderby_Enum' => __DIR__ . '/../..' . '/includes/type/enum/class-post-type-orderby-enum.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPEnum\\Pricing_Field_Format' => __DIR__ . '/../..' . '/includes/type/enum/class-pricing-field-format.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPEnum\\Product_Taxonomy' => __DIR__ . '/../..' . '/includes/type/enum/class-product-taxonomy.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPEnum\\Product_Types' => __DIR__ . '/../..' . '/includes/type/enum/class-product-types.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPEnum\\Products_Orderby_Enum' => __DIR__ . '/../..' . '/includes/type/enum/class-products-orderby-enum.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPEnum\\Stock_Status' => __DIR__ . '/../..' . '/includes/type/enum/class-stock-status.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPEnum\\Tax_Class' => __DIR__ . '/../..' . '/includes/type/enum/class-tax-class.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPEnum\\Tax_Rate_Connection_Orderby_Enum' => __DIR__ . '/../..' . '/includes/type/enum/class-tax-rate-connection-orderby-enum.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPEnum\\Tax_Status' => __DIR__ . '/../..' . '/includes/type/enum/class-tax-status.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPEnum\\Taxonomy_Operator' => __DIR__ . '/../..' . '/includes/type/enum/class-taxonomy-operator.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPInputObject\\Cart_Item_Quantity_Input' => __DIR__ . '/../..' . '/includes/type/input/class-cart-item-quantity-input.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPInputObject\\Create_Account_Input' => __DIR__ . '/../..' . '/includes/type/input/class-create-account-input.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPInputObject\\Customer_Address_Input' => __DIR__ . '/../..' . '/includes/type/input/class-customer-address-input.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPInputObject\\Fee_Line_Input' => __DIR__ . '/../..' . '/includes/type/input/class-fee-line-input.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPInputObject\\Line_Item_Input' => __DIR__ . '/../..' . '/includes/type/input/class-line-item-input.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPInputObject\\Meta_Data_Input' => __DIR__ . '/../..' . '/includes/type/input/class-meta-data-input.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPInputObject\\Orderby_Inputs' => __DIR__ . '/../..' . '/includes/type/input/class-orderby-inputs.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPInputObject\\Product_Attribute_Input' => __DIR__ . '/../..' . '/includes/type/input/class-product-attribute-input.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPInputObject\\Product_Taxonomy_Filter_Input' => __DIR__ . '/../..' . '/includes/type/input/class-product-taxonomy-filter-input.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPInputObject\\Product_Taxonomy_Filter_Relation_Input' => __DIR__ . '/../..' . '/includes/type/input/class-product-taxonomy-filter-relation-input.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPInputObject\\Shipping_Line_Input' => __DIR__ . '/../..' . '/includes/type/input/class-shipping-line-input.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPInputObject\\Tax_Rate_Connection_Orderby_Input' => __DIR__ . '/../..' . '/includes/type/input/class-tax-rate-connection-orderby-input.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPInterface\\Product' => __DIR__ . '/../..' . '/includes/type/interface/class-product.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPObject\\Cart_Type' => __DIR__ . '/../..' . '/includes/type/object/class-cart-type.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPObject\\Coupon_Type' => __DIR__ . '/../..' . '/includes/type/object/class-coupon-type.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPObject\\Customer_Address_Type' => __DIR__ . '/../..' . '/includes/type/object/class-customer-address-type.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPObject\\Customer_Type' => __DIR__ . '/../..' . '/includes/type/object/class-customer-type.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPObject\\Meta_Data_Type' => __DIR__ . '/../..' . '/includes/type/object/class-meta-data-type.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPObject\\Order_Item_Type' => __DIR__ . '/../..' . '/includes/type/object/class-order-item-type.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPObject\\Order_Type' => __DIR__ . '/../..' . '/includes/type/object/class-order-type.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPObject\\Payment_Gateway_Type' => __DIR__ . '/../..' . '/includes/type/object/class-payment-gateway-type.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPObject\\Product_Attribute_Type' => __DIR__ . '/../..' . '/includes/type/object/class-product-attribute-type.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPObject\\Product_Category_Type' => __DIR__ . '/../..' . '/includes/type/object/class-product-category-type.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPObject\\Product_Download_Type' => __DIR__ . '/../..' . '/includes/type/object/class-product-download-type.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPObject\\Product_Types' => __DIR__ . '/../..' . '/includes/type/object/class-product-types.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPObject\\Product_Variation_Type' => __DIR__ . '/../..' . '/includes/type/object/class-product-variation-type.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPObject\\Refund_Type' => __DIR__ . '/../..' . '/includes/type/object/class-refund-type.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPObject\\Shipping_Method_Type' => __DIR__ . '/../..' . '/includes/type/object/class-shipping-method-type.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPObject\\Tax_Rate_Type' => __DIR__ . '/../..' . '/includes/type/object/class-tax-rate-type.php',
|
||||
'WPGraphQL\\WooCommerce\\Type\\WPObject\\Variation_Attribute_Type' => __DIR__ . '/../..' . '/includes/type/object/class-variation-attribute-type.php',
|
||||
'WPGraphQL\\WooCommerce\\Type_Registry' => __DIR__ . '/../..' . '/includes/class-type-registry.php',
|
||||
'WPGraphQL\\WooCommerce\\Utils\\QL_Session_Handler' => __DIR__ . '/../..' . '/includes/utils/class-ql-session-handler.php',
|
||||
'WPGraphQL\\WooCommerce\\WooCommerce_Filters' => __DIR__ . '/../..' . '/includes/class-woocommerce-filters.php',
|
||||
'WP_GraphQL_WooCommerce' => __DIR__ . '/../..' . '/includes/class-wp-graphql-woocommerce.php',
|
||||
);
|
||||
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit97f27b844ca1dee10b117f9ca0f33148::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit97f27b844ca1dee10b117f9ca0f33148::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit97f27b844ca1dee10b117f9ca0f33148::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user