mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-05 19:41:44 +08:00
[更新]ComposerUpdate
This commit is contained in:
parent
a15cbfc9f8
commit
93ff22720e
@ -36,7 +36,7 @@ class Update extends Controller
|
||||
*/
|
||||
public function tree()
|
||||
{
|
||||
$sync = new Sync('Sync');
|
||||
$sync = new Sync();
|
||||
$this->success('获取当前文件列表成功!', $sync->build());
|
||||
}
|
||||
|
||||
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -4,4 +4,4 @@
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInitaea5ee4c248b1d18c5a6f14e8651ac7c::getLoader();
|
||||
return ComposerAutoloaderInit9e86e7f0caf03b802905a68d453659bc::getLoader();
|
||||
|
14
vendor/composer/autoload_real.php
vendored
14
vendor/composer/autoload_real.php
vendored
@ -2,7 +2,7 @@
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInitaea5ee4c248b1d18c5a6f14e8651ac7c
|
||||
class ComposerAutoloaderInit9e86e7f0caf03b802905a68d453659bc
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -19,15 +19,15 @@ class ComposerAutoloaderInitaea5ee4c248b1d18c5a6f14e8651ac7c
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInitaea5ee4c248b1d18c5a6f14e8651ac7c', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit9e86e7f0caf03b802905a68d453659bc', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitaea5ee4c248b1d18c5a6f14e8651ac7c', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit9e86e7f0caf03b802905a68d453659bc', '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\ComposerStaticInitaea5ee4c248b1d18c5a6f14e8651ac7c::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit9e86e7f0caf03b802905a68d453659bc::getInitializer($loader));
|
||||
} else {
|
||||
$map = require __DIR__ . '/autoload_namespaces.php';
|
||||
foreach ($map as $namespace => $path) {
|
||||
@ -48,19 +48,19 @@ class ComposerAutoloaderInitaea5ee4c248b1d18c5a6f14e8651ac7c
|
||||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInitaea5ee4c248b1d18c5a6f14e8651ac7c::$files;
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit9e86e7f0caf03b802905a68d453659bc::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequireaea5ee4c248b1d18c5a6f14e8651ac7c($fileIdentifier, $file);
|
||||
composerRequire9e86e7f0caf03b802905a68d453659bc($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
||||
|
||||
function composerRequireaea5ee4c248b1d18c5a6f14e8651ac7c($fileIdentifier, $file)
|
||||
function composerRequire9e86e7f0caf03b802905a68d453659bc($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
require $file;
|
||||
|
8
vendor/composer/autoload_static.php
vendored
8
vendor/composer/autoload_static.php
vendored
@ -4,7 +4,7 @@
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInitaea5ee4c248b1d18c5a6f14e8651ac7c
|
||||
class ComposerStaticInit9e86e7f0caf03b802905a68d453659bc
|
||||
{
|
||||
public static $files = array (
|
||||
'841780ea2e1d6545ea3a253239d59c05' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/functions.php',
|
||||
@ -347,9 +347,9 @@ class ComposerStaticInitaea5ee4c248b1d18c5a6f14e8651ac7c
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitaea5ee4c248b1d18c5a6f14e8651ac7c::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitaea5ee4c248b1d18c5a6f14e8651ac7c::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitaea5ee4c248b1d18c5a6f14e8651ac7c::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit9e86e7f0caf03b802905a68d453659bc::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit9e86e7f0caf03b802905a68d453659bc::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit9e86e7f0caf03b802905a68d453659bc::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
8
vendor/composer/installed.json
vendored
8
vendor/composer/installed.json
vendored
@ -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": {
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user