[更新]ComposerUpdate

This commit is contained in:
Anyon 2019-07-19 11:32:32 +08:00
parent 56a6253af5
commit ff9ae474e6
6 changed files with 19 additions and 19 deletions

View File

@ -35,7 +35,7 @@ class Update extends Controller
*/
public function tree()
{
$sync = new Sync('Sync');
$sync = new Sync();
$this->success('获取当前文件列表成功!', $sync->build());
}

2
vendor/autoload.php vendored
View File

@ -4,4 +4,4 @@
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInit1d3ba0ed0682a5c0c631f0be6d428e5d::getLoader();
return ComposerAutoloaderInit943694adc959b834a99bae9d9d175af6::getLoader();

View File

@ -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;

View File

@ -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);
}

View File

@ -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": {

View File

@ -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;
}