Skip to content

Commit

Permalink
Merge pull request #7 from wp-graphql/feature/wpgraphql-v0.4.0-compat
Browse files Browse the repository at this point in the history
v0.1.0 - Feature/wpgraphql v0.4.0 compat
  • Loading branch information
jasonbahl authored Oct 28, 2019
2 parents 2a8aaee + d1ca0f1 commit fd9564d
Show file tree
Hide file tree
Showing 8 changed files with 187 additions and 281 deletions.
3 changes: 0 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
"name": "wp-graphql/wp-graphql-meta-query",
"description": "Adds Meta_Query support to the WP GraphQL Plugin for Post Object Queries (WP_Query)",
"type": "wordpress-plugin",
"description": "Meta Query support for WPGraphQL",
"type": "wordpress-plugin",
"version": "0.0.4",
"license": "GPLv3",
"authors": [
{
Expand Down
226 changes: 0 additions & 226 deletions src/Type/MetaQueryType.php

This file was deleted.

2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInitc02385e0529cf5764a03a73de570fb0e::getLoader();
return ComposerAutoloaderInitb36d78f6e975f050c464d10b2238ae6a::getLoader();
4 changes: 2 additions & 2 deletions vendor/composer/ClassLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ public function isClassMapAuthoritative()
*/
public function setApcuPrefix($apcuPrefix)
{
$this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null;
$this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;
}

/**
Expand Down Expand Up @@ -377,7 +377,7 @@ private function findFileWithExtension($class, $ext)
$subPath = $class;
while (false !== $lastPos = strrpos($subPath, '\\')) {
$subPath = substr($subPath, 0, $lastPos);
$search = $subPath.'\\';
$search = $subPath . '\\';
if (isset($this->prefixDirsPsr4[$search])) {
$pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
foreach ($this->prefixDirsPsr4[$search] as $dir) {
Expand Down
1 change: 0 additions & 1 deletion vendor/composer/autoload_classmap.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
$baseDir = dirname($vendorDir);

return array(
'WPGraphQL\\MetaQuery\\Type\\MetaQueryType' => $baseDir . '/src/Type/MetaQueryType.php',
);
8 changes: 4 additions & 4 deletions vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInitc02385e0529cf5764a03a73de570fb0e
class ComposerAutoloaderInitb36d78f6e975f050c464d10b2238ae6a
{
private static $loader;

Expand All @@ -19,15 +19,15 @@ public static function getLoader()
return self::$loader;
}

spl_autoload_register(array('ComposerAutoloaderInitc02385e0529cf5764a03a73de570fb0e', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInitb36d78f6e975f050c464d10b2238ae6a', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
spl_autoload_unregister(array('ComposerAutoloaderInitc02385e0529cf5764a03a73de570fb0e', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInitb36d78f6e975f050c464d10b2238ae6a', '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\ComposerStaticInitc02385e0529cf5764a03a73de570fb0e::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInitb36d78f6e975f050c464d10b2238ae6a::getInitializer($loader));
} else {
$map = require __DIR__ . '/autoload_namespaces.php';
foreach ($map as $namespace => $path) {
Expand Down
11 changes: 3 additions & 8 deletions vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Composer\Autoload;

class ComposerStaticInitc02385e0529cf5764a03a73de570fb0e
class ComposerStaticInitb36d78f6e975f050c464d10b2238ae6a
{
public static $prefixLengthsPsr4 = array (
'W' =>
Expand All @@ -20,16 +20,11 @@ class ComposerStaticInitc02385e0529cf5764a03a73de570fb0e
),
);

public static $classMap = array (
'WPGraphQL\\MetaQuery\\Type\\MetaQueryType' => __DIR__ . '/../..' . '/src/Type/MetaQueryType.php',
);

public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInitc02385e0529cf5764a03a73de570fb0e::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitc02385e0529cf5764a03a73de570fb0e::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitc02385e0529cf5764a03a73de570fb0e::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInitb36d78f6e975f050c464d10b2238ae6a::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitb36d78f6e975f050c464d10b2238ae6a::$prefixDirsPsr4;

}, null, ClassLoader::class);
}
Expand Down
Loading

0 comments on commit fd9564d

Please sign in to comment.