From 1afecd0eed03571d3fe89b5ece310035553d6719 Mon Sep 17 00:00:00 2001 From: Geoff Taylor Date: Fri, 15 Nov 2019 00:38:46 -0500 Subject: [PATCH 1/8] codeception.dist.yml updated. --- codeception.dist.yml | 15 +++++++++++++-- tests/acceptance.suite.dist.yml | 1 + tests/wpunit.suite.dist.yml | 3 ++- tests/wpunit/bootstrap.php | 4 ++++ 4 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 tests/wpunit/bootstrap.php diff --git a/codeception.dist.yml b/codeception.dist.yml index 7b0416d41..c3362e697 100644 --- a/codeception.dist.yml +++ b/codeception.dist.yml @@ -53,9 +53,12 @@ modules: adminUsername: '%ADMIN_USERNAME%' adminPassword: '%ADMIN_PASSWORD%' adminPath: '/wp-admin' + curl: + CURLOPT_TIMEOUT: 300 REST: depends: WPBrowser url: '%WP_URL%' + timeout: 90 WPFilesystem: wpRootFolder: '%WP_ROOT_FOLDER%' plugins: '/wp-content/plugins' @@ -72,6 +75,14 @@ modules: domain: '%WP_DOMAIN%' adminEmail: '%ADMIN_EMAIL%' title: 'Test' - plugins: ['woocommerce/woocommerce.php', 'wp-graphql/wp-graphql.php', 'wp-graphql-jwt-authentication/wp-graphql-jwt-authentication.php', 'wp-graphql-woocommerce/wp-graphql-woocommerce.php'] - activatePlugins: ['woocommerce/woocommerce.php', 'wp-graphql/wp-graphql.php', 'wp-graphql-jwt-authentication/wp-graphql-jwt-authentication.php', 'wp-graphql-woocommerce/wp-graphql-woocommerce.php'] + plugins: + - woocommerce/woocommerce.php + - wp-graphql/wp-graphql.php + - wp-graphql-jwt-authentication/wp-graphql-jwt-authentication.php + - wp-graphql-woocommerce/wp-graphql-woocommerce.php + activatePlugins: + - woocommerce/woocommerce.php + - wp-graphql/wp-graphql.php + - wp-graphql-jwt-authentication/wp-graphql-jwt-authentication.php + - wp-graphql-woocommerce/wp-graphql-woocommerce.php configFile: 'tests/_data/config.php' diff --git a/tests/acceptance.suite.dist.yml b/tests/acceptance.suite.dist.yml index a1b0607d9..2fb59c184 100644 --- a/tests/acceptance.suite.dist.yml +++ b/tests/acceptance.suite.dist.yml @@ -14,6 +14,7 @@ modules: - WPDb - WPLoader - \Helper\Acceptance + config: WPDb: cleanup: false \ No newline at end of file diff --git a/tests/wpunit.suite.dist.yml b/tests/wpunit.suite.dist.yml index 09b017ee9..e53f1db49 100644 --- a/tests/wpunit.suite.dist.yml +++ b/tests/wpunit.suite.dist.yml @@ -9,4 +9,5 @@ modules: - \Helper\Wpunit disabled: - WPDb - - WPBrowser \ No newline at end of file + - WPBrowser +bootstrap: bootstrap.php \ No newline at end of file diff --git a/tests/wpunit/bootstrap.php b/tests/wpunit/bootstrap.php new file mode 100644 index 000000000..10b6bf6ac --- /dev/null +++ b/tests/wpunit/bootstrap.php @@ -0,0 +1,4 @@ + Date: Fri, 15 Nov 2019 01:16:40 -0500 Subject: [PATCH 2/8] codeception.dist.yml updated. --- codeception.dist.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/codeception.dist.yml b/codeception.dist.yml index c3362e697..371aa4251 100644 --- a/codeception.dist.yml +++ b/codeception.dist.yml @@ -22,6 +22,9 @@ coverage: - access-functions.php - class-inflect.php - includes/*.php + remote_context_options: + http: + timeout: 90 extensions: enabled: - Codeception\Extension\RunFailed @@ -54,7 +57,7 @@ modules: adminPassword: '%ADMIN_PASSWORD%' adminPath: '/wp-admin' curl: - CURLOPT_TIMEOUT: 300 + CURLOPT_TIMEOUT: 60000 REST: depends: WPBrowser url: '%WP_URL%' From d1a9fc46af4de93199ce3b4d51c6f4a89bbb28fb Mon Sep 17 00:00:00 2001 From: Geoff Taylor Date: Fri, 15 Nov 2019 01:34:11 -0500 Subject: [PATCH 3/8] Codeception remote configuration updated. --- tests/_support/Helper/Acceptance.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/_support/Helper/Acceptance.php b/tests/_support/Helper/Acceptance.php index b37ad3784..2a13b6c5b 100644 --- a/tests/_support/Helper/Acceptance.php +++ b/tests/_support/Helper/Acceptance.php @@ -316,9 +316,11 @@ public function executeQuery( $mutation, $input, $session_header = null, $update $rest->haveHttpHeader( 'woocommerce-session', $session_header ); } + $wp_url = getenv( 'WP_URL' ); + // Send request. $rest->sendPOST( - '/graphql', + "{$wp_url}/graphql", json_encode( array( 'query' => $mutation, From 3f8d8d7a1f1480c8dad1df0ef7537619a797bd67 Mon Sep 17 00:00:00 2001 From: Geoff Taylor Date: Sat, 16 Nov 2019 12:08:41 -0500 Subject: [PATCH 4/8] Docker configuration updated. --- Dockerfile | 10 +++++--- bin/testing-entrypoint.sh | 40 +++++++++++++++++------------ codeception.dist.yml | 4 +-- composer.json | 3 ++- docker-compose.yml | 1 + phpunit.xml.dist | 16 ------------ tests/acceptance.suite.dist.yml | 1 - vendor/autoload.php | 2 +- vendor/composer/autoload_real.php | 14 +++++----- vendor/composer/autoload_static.php | 8 +++--- 10 files changed, 46 insertions(+), 53 deletions(-) delete mode 100644 phpunit.xml.dist diff --git a/Dockerfile b/Dockerfile index 350df241e..7a65b1f96 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,10 +21,12 @@ ARG DESIRED_PHP_VERSION RUN docker-php-ext-install pdo_mysql # Install Xdebug -RUN if [ "$DESIRED_PHP_VERSION" == "5.6" ]; then yes | pecl install xdebug-2.5.5; else yes | pecl install xdebug; fi \ - && echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \ - && echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \ - && echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini +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 ;\ + fi # Install composer ENV COMPOSER_ALLOW_SUPERUSER=1 diff --git a/bin/testing-entrypoint.sh b/bin/testing-entrypoint.sh index c0f335f38..303cac199 100644 --- a/bin/testing-entrypoint.sh +++ b/bin/testing-entrypoint.sh @@ -30,37 +30,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 + COMPOSER_MEMORY_LIMIT=-1 composer require --dev pcov/clobber + vendor/bin/pcov clobber +fi + # Set output permission echo "Setting Codeception output directory permissions" chmod 777 ${TESTS_OUTPUT} -if [[ -z "$SUITES" ]]; then - if [ "$COVERAGE" == "1" -a "$DEBUG" == "1" ]; then - vendor/bin/codecept run --debug --coverage --coverage-xml - elif [ "$COVERAGE" == "1" ]; then - vendor/bin/codecept run --coverage --coverage-xml - elif [ "$DEBUG" == "1" ]; then - vendor/bin/codecept run --debug - else - vendor/bin/codecept run - fi -else - IFS=';' read -ra target_suites <<< "$SUITES" +run_tests() { + local suites=${1:-" ;"} + IFS=';' read -ra target_suites <<< "$suites" for suite in "${target_suites[@]}"; do if [ "$COVERAGE" == "1" -a "$DEBUG" == "1" ]; then - vendor/bin/codecept run ${suite} --debug --coverage --coverage-xml + php -d pcov.enabled=1 vendor/bin/codecept run \ + -c codeception.dist.yml ${suite} --debug --coverage --coverage-xml elif [ "$COVERAGE" == "1" ]; then - vendor/bin/codecept run ${suite} --coverage --coverage-xml + 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 ${suite} --debug + vendor/bin/codecept run -c codeception.dist.yml ${suite} --debug else - vendor/bin/codecept run ${suite} + vendor/bin/codecept run -c codeception.dist.yml ${suite} fi done -fi +} + +run_tests ${SUITES} if [ -f "${TESTS_OUTPUT}" ]; then echo 'Setting "coverage.xml" permissions'. chmod 777 -R ${TESTS_OUTPUT}/coverage.xml +fi + +if [ "$COVERAGE" == "1" ]; then + echo 'Removing pcov/clobber.' + vendor/bin/pcov unclobber + COMPOSER_MEMORY_LIMIT=-1 composer remove --dev pcov/clobber fi \ No newline at end of file diff --git a/codeception.dist.yml b/codeception.dist.yml index 371aa4251..757cf03cf 100644 --- a/codeception.dist.yml +++ b/codeception.dist.yml @@ -14,8 +14,8 @@ settings: coverage: enabled: true remote: false - work_dir: /var/www/html/wp-content/plugins/wp-graphql-woocommerce - c3_url: http://localhost/wp-content/plugins/wp-graphql-woocommerce/wp-graphql-woocommerce.php + work_dir: '%WP_ROOT_FOLDER%/wp-content/plugins/wp-graphql-woocommerce' + c3_url: '%WP_URL%/wp-content/plugins/wp-graphql-woocommerce/wp-graphql-woocommerce.php' whitelist: include: - wp-graphql-woocommerce.php diff --git a/composer.json b/composer.json index 6b89dc6e9..bfb3c2e2f 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,8 @@ "php": ">=5.6.0" }, "require-dev": { - "lucatume/wp-browser": ">=2.2.1 <2.2.8" + "lucatume/wp-browser": ">=2.2.1 <2.2.8", + "pcov/clobber": "^2.0" }, "config": { "optimize-autoloader": true diff --git a/docker-compose.yml b/docker-compose.yml index 6dbb950d8..f1aabbae6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,6 +7,7 @@ services: image: "kidunot89/woographql-app:wp${WP_VERSION:-5.2.2}-php${PHP_VERSION:-7.2}" volumes: - '.:/var/www/html/wp-content/plugins/wp-graphql-woocommerce' + - './codeception.dist.yml:/var/www/html/wp-content/plugins/wp-graphql-woocommerce/codeception.yml' - './.log/app:/var/log/apache2' env_file: .env.dist environment: diff --git a/phpunit.xml.dist b/phpunit.xml.dist deleted file mode 100644 index 16a39027e..000000000 --- a/phpunit.xml.dist +++ /dev/null @@ -1,16 +0,0 @@ - - - - - ./tests/ - ./tests/test-sample.php - - - diff --git a/tests/acceptance.suite.dist.yml b/tests/acceptance.suite.dist.yml index 2fb59c184..a1b0607d9 100644 --- a/tests/acceptance.suite.dist.yml +++ b/tests/acceptance.suite.dist.yml @@ -14,7 +14,6 @@ modules: - WPDb - WPLoader - \Helper\Acceptance - config: WPDb: cleanup: false \ No newline at end of file diff --git a/vendor/autoload.php b/vendor/autoload.php index 414da29ce..06224c82a 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -4,4 +4,4 @@ require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInitcece0dfed0b70a4b4547c45015505517::getLoader(); +return ComposerAutoloaderInit97f27b844ca1dee10b117f9ca0f33148::getLoader(); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index 5917c9441..73a103b30 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInitcece0dfed0b70a4b4547c45015505517 +class ComposerAutoloaderInit97f27b844ca1dee10b117f9ca0f33148 { private static $loader; @@ -19,15 +19,15 @@ public static function getLoader() return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInitcece0dfed0b70a4b4547c45015505517', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit97f27b844ca1dee10b117f9ca0f33148', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(); - spl_autoload_unregister(array('ComposerAutoloaderInitcece0dfed0b70a4b4547c45015505517', 'loadClassLoader')); + 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\ComposerStaticInitcece0dfed0b70a4b4547c45015505517::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInit97f27b844ca1dee10b117f9ca0f33148::getInitializer($loader)); } else { $map = require __DIR__ . '/autoload_namespaces.php'; foreach ($map as $namespace => $path) { @@ -48,19 +48,19 @@ public static function getLoader() $loader->register(true); if ($useStaticLoader) { - $includeFiles = Composer\Autoload\ComposerStaticInitcece0dfed0b70a4b4547c45015505517::$files; + $includeFiles = Composer\Autoload\ComposerStaticInit97f27b844ca1dee10b117f9ca0f33148::$files; } else { $includeFiles = require __DIR__ . '/autoload_files.php'; } foreach ($includeFiles as $fileIdentifier => $file) { - composerRequirecece0dfed0b70a4b4547c45015505517($fileIdentifier, $file); + composerRequire97f27b844ca1dee10b117f9ca0f33148($fileIdentifier, $file); } return $loader; } } -function composerRequirecece0dfed0b70a4b4547c45015505517($fileIdentifier, $file) +function composerRequire97f27b844ca1dee10b117f9ca0f33148($fileIdentifier, $file) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { require $file; diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index 983bce8a2..f868a4228 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInitcece0dfed0b70a4b4547c45015505517 +class ComposerStaticInit97f27b844ca1dee10b117f9ca0f33148 { public static $files = array ( '914b07b8cf678ed0b81bfdb5d23b4f2b' => __DIR__ . '/../..' . '/includes/connection/common-post-type-args.php', @@ -148,9 +148,9 @@ class ComposerStaticInitcece0dfed0b70a4b4547c45015505517 public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInitcece0dfed0b70a4b4547c45015505517::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInitcece0dfed0b70a4b4547c45015505517::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInitcece0dfed0b70a4b4547c45015505517::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInit97f27b844ca1dee10b117f9ca0f33148::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit97f27b844ca1dee10b117f9ca0f33148::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit97f27b844ca1dee10b117f9ca0f33148::$classMap; }, null, ClassLoader::class); } From aec8258694ad9801a33f63cda2b7c608e72efc5b Mon Sep 17 00:00:00 2001 From: Geoff Taylor Date: Sat, 16 Nov 2019 12:16:32 -0500 Subject: [PATCH 5/8] composer.json updated. --- composer.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/composer.json b/composer.json index bfb3c2e2f..6b89dc6e9 100644 --- a/composer.json +++ b/composer.json @@ -25,8 +25,7 @@ "php": ">=5.6.0" }, "require-dev": { - "lucatume/wp-browser": ">=2.2.1 <2.2.8", - "pcov/clobber": "^2.0" + "lucatume/wp-browser": ">=2.2.1 <2.2.8" }, "config": { "optimize-autoloader": true From e18a3930ed2217feb752c5466705ec416305d99b Mon Sep 17 00:00:00 2001 From: Geoff Taylor Date: Sat, 16 Nov 2019 12:18:15 -0500 Subject: [PATCH 6/8] .travis.yml updated --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 229bfcb3b..ee5201953 100644 --- a/.travis.yml +++ b/.travis.yml @@ -94,7 +94,6 @@ script: - | if [ ! -z "$WP_VERSION" ]; then docker-compose run --rm \ - -e SUITES='acceptance;functional;wpunit' \ -e COVERAGE=${COVERAGE:-0} \ -e DEBUG=${DEBUG:-0} \ testing --scale app=0 From 1ffe19e50efb30b7a2e98906b4a26a705b101983 Mon Sep 17 00:00:00 2001 From: Geoff Taylor Date: Sat, 16 Nov 2019 19:35:48 -0500 Subject: [PATCH 7/8] testing-entrypoint script updated. --- .travis.yml | 1 - Dockerfile | 20 +- bin/testing-entrypoint.sh | 74 ++-- vendor/autoload.php | 7 - vendor/composer/ClassLoader.php | 445 ------------------------ vendor/composer/LICENSE | 21 -- vendor/composer/autoload_classmap.php | 126 ------- vendor/composer/autoload_files.php | 11 - vendor/composer/autoload_namespaces.php | 9 - vendor/composer/autoload_psr4.php | 10 - vendor/composer/autoload_real.php | 70 ---- vendor/composer/autoload_static.php | 157 --------- 12 files changed, 62 insertions(+), 889 deletions(-) delete mode 100644 vendor/autoload.php delete mode 100644 vendor/composer/ClassLoader.php delete mode 100644 vendor/composer/LICENSE delete mode 100644 vendor/composer/autoload_classmap.php delete mode 100644 vendor/composer/autoload_files.php delete mode 100644 vendor/composer/autoload_namespaces.php delete mode 100644 vendor/composer/autoload_psr4.php delete mode 100644 vendor/composer/autoload_real.php delete mode 100644 vendor/composer/autoload_static.php diff --git a/.travis.yml b/.travis.yml index ee5201953..4b35dd148 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/Dockerfile b/Dockerfile index 7a65b1f96..429e8f503 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/bin/testing-entrypoint.sh b/bin/testing-entrypoint.sh index 303cac199..4fb9212fd 100644 --- a/bin/testing-entrypoint.sh +++ b/bin/testing-entrypoint.sh @@ -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 \ No newline at end of file diff --git a/vendor/autoload.php b/vendor/autoload.php deleted file mode 100644 index 06224c82a..000000000 --- a/vendor/autoload.php +++ /dev/null @@ -1,7 +0,0 @@ - - * Jordi Boggiano - * - * 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 - * @author Jordi Boggiano - * @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; -} diff --git a/vendor/composer/LICENSE b/vendor/composer/LICENSE deleted file mode 100644 index f27399a04..000000000 --- a/vendor/composer/LICENSE +++ /dev/null @@ -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. - diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php deleted file mode 100644 index 01f081e4d..000000000 --- a/vendor/composer/autoload_classmap.php +++ /dev/null @@ -1,126 +0,0 @@ - $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', -); diff --git a/vendor/composer/autoload_files.php b/vendor/composer/autoload_files.php deleted file mode 100644 index aef00ef4c..000000000 --- a/vendor/composer/autoload_files.php +++ /dev/null @@ -1,11 +0,0 @@ - $baseDir . '/includes/connection/common-post-type-args.php', - '45a15019e901000ab8608c03ebff44fb' => $baseDir . '/includes/functions.php', -); diff --git a/vendor/composer/autoload_namespaces.php b/vendor/composer/autoload_namespaces.php deleted file mode 100644 index b7fc0125d..000000000 --- a/vendor/composer/autoload_namespaces.php +++ /dev/null @@ -1,9 +0,0 @@ - array($baseDir . '/includes'), -); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php deleted file mode 100644 index 73a103b30..000000000 --- a/vendor/composer/autoload_real.php +++ /dev/null @@ -1,70 +0,0 @@ -= 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; - } -} diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php deleted file mode 100644 index f868a4228..000000000 --- a/vendor/composer/autoload_static.php +++ /dev/null @@ -1,157 +0,0 @@ - __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); - } -} From 1945b633334ad999f7487a502427ce0b94643154 Mon Sep 17 00:00:00 2001 From: Geoff Taylor Date: Sat, 16 Nov 2019 19:40:09 -0500 Subject: [PATCH 8/8] vendor rebuilt --- vendor/autoload.php | 7 + vendor/composer/ClassLoader.php | 445 ++++++++++++++++++++++++ vendor/composer/LICENSE | 21 ++ vendor/composer/autoload_classmap.php | 126 +++++++ vendor/composer/autoload_files.php | 11 + vendor/composer/autoload_namespaces.php | 9 + vendor/composer/autoload_psr4.php | 10 + vendor/composer/autoload_real.php | 70 ++++ vendor/composer/autoload_static.php | 157 +++++++++ 9 files changed, 856 insertions(+) create mode 100644 vendor/autoload.php create mode 100644 vendor/composer/ClassLoader.php create mode 100644 vendor/composer/LICENSE create mode 100644 vendor/composer/autoload_classmap.php create mode 100644 vendor/composer/autoload_files.php create mode 100644 vendor/composer/autoload_namespaces.php create mode 100644 vendor/composer/autoload_psr4.php create mode 100644 vendor/composer/autoload_real.php create mode 100644 vendor/composer/autoload_static.php diff --git a/vendor/autoload.php b/vendor/autoload.php new file mode 100644 index 000000000..e7696e8ea --- /dev/null +++ b/vendor/autoload.php @@ -0,0 +1,7 @@ + + * Jordi Boggiano + * + * 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 + * @author Jordi Boggiano + * @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; +} diff --git a/vendor/composer/LICENSE b/vendor/composer/LICENSE new file mode 100644 index 000000000..f27399a04 --- /dev/null +++ b/vendor/composer/LICENSE @@ -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. + diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php new file mode 100644 index 000000000..01f081e4d --- /dev/null +++ b/vendor/composer/autoload_classmap.php @@ -0,0 +1,126 @@ + $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', +); diff --git a/vendor/composer/autoload_files.php b/vendor/composer/autoload_files.php new file mode 100644 index 000000000..aef00ef4c --- /dev/null +++ b/vendor/composer/autoload_files.php @@ -0,0 +1,11 @@ + $baseDir . '/includes/connection/common-post-type-args.php', + '45a15019e901000ab8608c03ebff44fb' => $baseDir . '/includes/functions.php', +); diff --git a/vendor/composer/autoload_namespaces.php b/vendor/composer/autoload_namespaces.php new file mode 100644 index 000000000..b7fc0125d --- /dev/null +++ b/vendor/composer/autoload_namespaces.php @@ -0,0 +1,9 @@ + array($baseDir . '/includes'), +); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php new file mode 100644 index 000000000..062468345 --- /dev/null +++ b/vendor/composer/autoload_real.php @@ -0,0 +1,70 @@ += 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\ComposerStaticInit9bbd45aa8b04608575647f29a64a8d55::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\ComposerStaticInit9bbd45aa8b04608575647f29a64a8d55::$files; + } else { + $includeFiles = require __DIR__ . '/autoload_files.php'; + } + foreach ($includeFiles as $fileIdentifier => $file) { + composerRequire9bbd45aa8b04608575647f29a64a8d55($fileIdentifier, $file); + } + + return $loader; + } +} + +function composerRequire9bbd45aa8b04608575647f29a64a8d55($fileIdentifier, $file) +{ + if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { + require $file; + + $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; + } +} diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php new file mode 100644 index 000000000..11561ee06 --- /dev/null +++ b/vendor/composer/autoload_static.php @@ -0,0 +1,157 @@ + __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 = ComposerStaticInit9bbd45aa8b04608575647f29a64a8d55::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit9bbd45aa8b04608575647f29a64a8d55::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit9bbd45aa8b04608575647f29a64a8d55::$classMap; + + }, null, ClassLoader::class); + } +}