mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]ComposerUpdate
This commit is contained in:
parent
56a6253af5
commit
ff9ae474e6
@ -35,7 +35,7 @@ class Update extends Controller
|
|||||||
*/
|
*/
|
||||||
public function tree()
|
public function tree()
|
||||||
{
|
{
|
||||||
$sync = new Sync('Sync');
|
$sync = new Sync();
|
||||||
$this->success('获取当前文件列表成功!', $sync->build());
|
$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';
|
require_once __DIR__ . '/composer/autoload_real.php';
|
||||||
|
|
||||||
return ComposerAutoloaderInit1d3ba0ed0682a5c0c631f0be6d428e5d::getLoader();
|
return ComposerAutoloaderInit943694adc959b834a99bae9d9d175af6::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
|
// autoload_real.php @generated by Composer
|
||||||
|
|
||||||
class ComposerAutoloaderInit1d3ba0ed0682a5c0c631f0be6d428e5d
|
class ComposerAutoloaderInit943694adc959b834a99bae9d9d175af6
|
||||||
{
|
{
|
||||||
private static $loader;
|
private static $loader;
|
||||||
|
|
||||||
@ -19,15 +19,15 @@ class ComposerAutoloaderInit1d3ba0ed0682a5c0c631f0be6d428e5d
|
|||||||
return self::$loader;
|
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();
|
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());
|
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
||||||
if ($useStaticLoader) {
|
if ($useStaticLoader) {
|
||||||
require_once __DIR__ . '/autoload_static.php';
|
require_once __DIR__ . '/autoload_static.php';
|
||||||
|
|
||||||
call_user_func(\Composer\Autoload\ComposerStaticInit1d3ba0ed0682a5c0c631f0be6d428e5d::getInitializer($loader));
|
call_user_func(\Composer\Autoload\ComposerStaticInit943694adc959b834a99bae9d9d175af6::getInitializer($loader));
|
||||||
} else {
|
} else {
|
||||||
$map = require __DIR__ . '/autoload_namespaces.php';
|
$map = require __DIR__ . '/autoload_namespaces.php';
|
||||||
foreach ($map as $namespace => $path) {
|
foreach ($map as $namespace => $path) {
|
||||||
@ -48,19 +48,19 @@ class ComposerAutoloaderInit1d3ba0ed0682a5c0c631f0be6d428e5d
|
|||||||
$loader->register(true);
|
$loader->register(true);
|
||||||
|
|
||||||
if ($useStaticLoader) {
|
if ($useStaticLoader) {
|
||||||
$includeFiles = Composer\Autoload\ComposerStaticInit1d3ba0ed0682a5c0c631f0be6d428e5d::$files;
|
$includeFiles = Composer\Autoload\ComposerStaticInit943694adc959b834a99bae9d9d175af6::$files;
|
||||||
} else {
|
} else {
|
||||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||||
}
|
}
|
||||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||||
composerRequire1d3ba0ed0682a5c0c631f0be6d428e5d($fileIdentifier, $file);
|
composerRequire943694adc959b834a99bae9d9d175af6($fileIdentifier, $file);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $loader;
|
return $loader;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function composerRequire1d3ba0ed0682a5c0c631f0be6d428e5d($fileIdentifier, $file)
|
function composerRequire943694adc959b834a99bae9d9d175af6($fileIdentifier, $file)
|
||||||
{
|
{
|
||||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||||
require $file;
|
require $file;
|
||||||
|
8
vendor/composer/autoload_static.php
vendored
8
vendor/composer/autoload_static.php
vendored
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
namespace Composer\Autoload;
|
namespace Composer\Autoload;
|
||||||
|
|
||||||
class ComposerStaticInit1d3ba0ed0682a5c0c631f0be6d428e5d
|
class ComposerStaticInit943694adc959b834a99bae9d9d175af6
|
||||||
{
|
{
|
||||||
public static $files = array (
|
public static $files = array (
|
||||||
'841780ea2e1d6545ea3a253239d59c05' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/functions.php',
|
'841780ea2e1d6545ea3a253239d59c05' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/functions.php',
|
||||||
@ -347,9 +347,9 @@ class ComposerStaticInit1d3ba0ed0682a5c0c631f0be6d428e5d
|
|||||||
public static function getInitializer(ClassLoader $loader)
|
public static function getInitializer(ClassLoader $loader)
|
||||||
{
|
{
|
||||||
return \Closure::bind(function () use ($loader) {
|
return \Closure::bind(function () use ($loader) {
|
||||||
$loader->prefixLengthsPsr4 = ComposerStaticInit1d3ba0ed0682a5c0c631f0be6d428e5d::$prefixLengthsPsr4;
|
$loader->prefixLengthsPsr4 = ComposerStaticInit943694adc959b834a99bae9d9d175af6::$prefixLengthsPsr4;
|
||||||
$loader->prefixDirsPsr4 = ComposerStaticInit1d3ba0ed0682a5c0c631f0be6d428e5d::$prefixDirsPsr4;
|
$loader->prefixDirsPsr4 = ComposerStaticInit943694adc959b834a99bae9d9d175af6::$prefixDirsPsr4;
|
||||||
$loader->classMap = ComposerStaticInit1d3ba0ed0682a5c0c631f0be6d428e5d::$classMap;
|
$loader->classMap = ComposerStaticInit943694adc959b834a99bae9d9d175af6::$classMap;
|
||||||
|
|
||||||
}, null, ClassLoader::class);
|
}, null, ClassLoader::class);
|
||||||
}
|
}
|
||||||
|
8
vendor/composer/installed.json
vendored
8
vendor/composer/installed.json
vendored
@ -502,12 +502,12 @@
|
|||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/zoujingli/ThinkLibrary.git",
|
"url": "https://github.com/zoujingli/ThinkLibrary.git",
|
||||||
"reference": "71d9d3e9e8dbd2939ccab8af7891c597fd037b15"
|
"reference": "792cc96d0b400bde724d40a4296a4b9c98136cb4"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/71d9d3e9e8dbd2939ccab8af7891c597fd037b15",
|
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/792cc96d0b400bde724d40a4296a4b9c98136cb4",
|
||||||
"reference": "71d9d3e9e8dbd2939ccab8af7891c597fd037b15",
|
"reference": "792cc96d0b400bde724d40a4296a4b9c98136cb4",
|
||||||
"shasum": "",
|
"shasum": "",
|
||||||
"mirrors": [
|
"mirrors": [
|
||||||
{
|
{
|
||||||
@ -526,7 +526,7 @@
|
|||||||
"qiniu/php-sdk": "^7.2",
|
"qiniu/php-sdk": "^7.2",
|
||||||
"topthink/framework": "5.1.*"
|
"topthink/framework": "5.1.*"
|
||||||
},
|
},
|
||||||
"time": "2019-07-19T03:22:49+00:00",
|
"time": "2019-07-19T03:28:52+00:00",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"installation-source": "dist",
|
"installation-source": "dist",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
|
@ -62,13 +62,13 @@ class Sync extends Command
|
|||||||
* 执行指令
|
* 执行指令
|
||||||
* @param Input $input
|
* @param Input $input
|
||||||
* @param Output $output
|
* @param Output $output
|
||||||
* @param array $files
|
|
||||||
*/
|
*/
|
||||||
protected function execute(Input $input, Output $output, $files = [])
|
protected function execute(Input $input, Output $output)
|
||||||
{
|
{
|
||||||
$output->newLine();
|
$output->newLine();
|
||||||
$output->comment("=== 准备从代码仓库下载更新{$this->version}版本文件 ===");
|
$output->comment("=== 准备从代码仓库下载更新{$this->version}版本文件 ===");
|
||||||
$output->newLine();
|
$output->newLine();
|
||||||
|
$files = [];
|
||||||
foreach ($this->getDiff() as $file) foreach ($this->modules as $module) {
|
foreach ($this->getDiff() as $file) foreach ($this->modules as $module) {
|
||||||
if (stripos($file['name'], $module) === 0) $files[] = $file;
|
if (stripos($file['name'], $module) === 0) $files[] = $file;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user