Skip to content

Commit

Permalink
Merge pull request #10 from wp-graphql/bug/#9-cleanup-composer-file
Browse files Browse the repository at this point in the history
#9 - cleanup composer autoloader (no longer needed)
  • Loading branch information
jasonbahl authored Nov 6, 2019
2 parents fd9564d + 8fedebd commit dea0f4f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 31 deletions.
9 changes: 1 addition & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,5 @@
"config": {
"optimize-autoloader": true
},
"autoload": {
"psr-4": {
"WPGraphQL\\MetaQuery\\": "src"
},
"classmap": [
"src/"
]
}
"autoload": {}
}
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 ComposerAutoloaderInitb36d78f6e975f050c464d10b2238ae6a::getLoader();
return ComposerAutoloaderInitffba3894973efb34186df2479bf83aae::getLoader();
1 change: 0 additions & 1 deletion vendor/composer/autoload_psr4.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
$baseDir = dirname($vendorDir);

return array(
'WPGraphQL\\MetaQuery\\' => array($baseDir . '/src'),
);
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 ComposerAutoloaderInitb36d78f6e975f050c464d10b2238ae6a
class ComposerAutoloaderInitffba3894973efb34186df2479bf83aae
{
private static $loader;

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

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

namespace Composer\Autoload;

class ComposerStaticInitb36d78f6e975f050c464d10b2238ae6a
class ComposerStaticInitffba3894973efb34186df2479bf83aae
{
public static $prefixLengthsPsr4 = array (
'W' =>
array (
'WPGraphQL\\MetaQuery\\' => 20,
),
);

public static $prefixDirsPsr4 = array (
'WPGraphQL\\MetaQuery\\' =>
array (
0 => __DIR__ . '/../..' . '/src',
),
);

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

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

0 comments on commit dea0f4f

Please sign in to comment.