From ff9ae474e645b32ce2301e5976b923ff3f643980 Mon Sep 17 00:00:00 2001 From: Anyon Date: Fri, 19 Jul 2019 11:32:32 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]ComposerUpdate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/api/Update.php | 2 +- vendor/autoload.php | 2 +- vendor/composer/autoload_real.php | 14 +++++++------- vendor/composer/autoload_static.php | 8 ++++---- vendor/composer/installed.json | 8 ++++---- .../zoujingli/think-library/src/command/Sync.php | 4 ++-- 6 files changed, 19 insertions(+), 19 deletions(-) diff --git a/application/admin/controller/api/Update.php b/application/admin/controller/api/Update.php index aa10578e0..5a7e8a301 100644 --- a/application/admin/controller/api/Update.php +++ b/application/admin/controller/api/Update.php @@ -35,7 +35,7 @@ class Update extends Controller */ public function tree() { - $sync = new Sync('Sync'); + $sync = new Sync(); $this->success('获取当前文件列表成功!', $sync->build()); } diff --git a/vendor/autoload.php b/vendor/autoload.php index 5e9b49001..cc09cd739 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -4,4 +4,4 @@ require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInit1d3ba0ed0682a5c0c631f0be6d428e5d::getLoader(); +return ComposerAutoloaderInit943694adc959b834a99bae9d9d175af6::getLoader(); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index 9e8c210ed..487fd2aec 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInit1d3ba0ed0682a5c0c631f0be6d428e5d +class ComposerAutoloaderInit943694adc959b834a99bae9d9d175af6 { private static $loader; @@ -19,15 +19,15 @@ class ComposerAutoloaderInit1d3ba0ed0682a5c0c631f0be6d428e5d return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInit1d3ba0ed0682a5c0c631f0be6d428e5d', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit943694adc959b834a99bae9d9d175af6', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(); - spl_autoload_unregister(array('ComposerAutoloaderInit1d3ba0ed0682a5c0c631f0be6d428e5d', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInit943694adc959b834a99bae9d9d175af6', '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\ComposerStaticInit1d3ba0ed0682a5c0c631f0be6d428e5d::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInit943694adc959b834a99bae9d9d175af6::getInitializer($loader)); } else { $map = require __DIR__ . '/autoload_namespaces.php'; foreach ($map as $namespace => $path) { @@ -48,19 +48,19 @@ class ComposerAutoloaderInit1d3ba0ed0682a5c0c631f0be6d428e5d $loader->register(true); if ($useStaticLoader) { - $includeFiles = Composer\Autoload\ComposerStaticInit1d3ba0ed0682a5c0c631f0be6d428e5d::$files; + $includeFiles = Composer\Autoload\ComposerStaticInit943694adc959b834a99bae9d9d175af6::$files; } else { $includeFiles = require __DIR__ . '/autoload_files.php'; } foreach ($includeFiles as $fileIdentifier => $file) { - composerRequire1d3ba0ed0682a5c0c631f0be6d428e5d($fileIdentifier, $file); + composerRequire943694adc959b834a99bae9d9d175af6($fileIdentifier, $file); } return $loader; } } -function composerRequire1d3ba0ed0682a5c0c631f0be6d428e5d($fileIdentifier, $file) +function composerRequire943694adc959b834a99bae9d9d175af6($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 145e8799a..2802c8458 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInit1d3ba0ed0682a5c0c631f0be6d428e5d +class ComposerStaticInit943694adc959b834a99bae9d9d175af6 { public static $files = array ( '841780ea2e1d6545ea3a253239d59c05' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/functions.php', @@ -347,9 +347,9 @@ class ComposerStaticInit1d3ba0ed0682a5c0c631f0be6d428e5d public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInit1d3ba0ed0682a5c0c631f0be6d428e5d::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInit1d3ba0ed0682a5c0c631f0be6d428e5d::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInit1d3ba0ed0682a5c0c631f0be6d428e5d::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInit943694adc959b834a99bae9d9d175af6::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit943694adc959b834a99bae9d9d175af6::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit943694adc959b834a99bae9d9d175af6::$classMap; }, null, ClassLoader::class); } diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 615b6db4e..00501b224 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -502,12 +502,12 @@ "source": { "type": "git", "url": "https://github.com/zoujingli/ThinkLibrary.git", - "reference": "71d9d3e9e8dbd2939ccab8af7891c597fd037b15" + "reference": "792cc96d0b400bde724d40a4296a4b9c98136cb4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/71d9d3e9e8dbd2939ccab8af7891c597fd037b15", - "reference": "71d9d3e9e8dbd2939ccab8af7891c597fd037b15", + "url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/792cc96d0b400bde724d40a4296a4b9c98136cb4", + "reference": "792cc96d0b400bde724d40a4296a4b9c98136cb4", "shasum": "", "mirrors": [ { @@ -526,7 +526,7 @@ "qiniu/php-sdk": "^7.2", "topthink/framework": "5.1.*" }, - "time": "2019-07-19T03:22:49+00:00", + "time": "2019-07-19T03:28:52+00:00", "type": "library", "installation-source": "dist", "autoload": { diff --git a/vendor/zoujingli/think-library/src/command/Sync.php b/vendor/zoujingli/think-library/src/command/Sync.php index d0bddae04..21c7f4479 100644 --- a/vendor/zoujingli/think-library/src/command/Sync.php +++ b/vendor/zoujingli/think-library/src/command/Sync.php @@ -62,13 +62,13 @@ class Sync extends Command * 执行指令 * @param Input $input * @param Output $output - * @param array $files */ - protected function execute(Input $input, Output $output, $files = []) + protected function execute(Input $input, Output $output) { $output->newLine(); $output->comment("=== 准备从代码仓库下载更新{$this->version}版本文件 ==="); $output->newLine(); + $files = []; foreach ($this->getDiff() as $file) foreach ($this->modules as $module) { if (stripos($file['name'], $module) === 0) $files[] = $file; }