mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-05 19:41:44 +08:00
ComposerUpdate
This commit is contained in:
parent
69efe07359
commit
0d8bed8b6f
@ -42,14 +42,10 @@ class Update extends Controller
|
||||
*/
|
||||
public function get($encode)
|
||||
{
|
||||
$this->file = dirname($this->app->getAppPath()) . '/' . decode($encode);
|
||||
if (file_exists($this->file)) {
|
||||
$this->success('读取文件成功!', [
|
||||
'format' => 'base64', 'content' => base64_encode(file_get_contents($this->file)),
|
||||
]);
|
||||
} else {
|
||||
$this->error('获取文件内容失败!');
|
||||
}
|
||||
$this->file = $this->app->getRootPath() . decode($encode);
|
||||
file_exists($this->file) ? $this->success('读取文件成功!', [
|
||||
'format' => 'base64', 'content' => base64_encode(file_get_contents($this->file)),
|
||||
]) : $this->error('获取文件内容失败!');
|
||||
}
|
||||
|
||||
}
|
||||
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -4,4 +4,4 @@
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit04cda99c86e0d1e594810d779a40708c::getLoader();
|
||||
return ComposerAutoloaderInitc7690ef5c13b95d953f61a4e48e6692c::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 ComposerAutoloaderInit04cda99c86e0d1e594810d779a40708c
|
||||
class ComposerAutoloaderInitc7690ef5c13b95d953f61a4e48e6692c
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -19,15 +19,15 @@ class ComposerAutoloaderInit04cda99c86e0d1e594810d779a40708c
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit04cda99c86e0d1e594810d779a40708c', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInitc7690ef5c13b95d953f61a4e48e6692c', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit04cda99c86e0d1e594810d779a40708c', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitc7690ef5c13b95d953f61a4e48e6692c', '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\ComposerStaticInit04cda99c86e0d1e594810d779a40708c::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitc7690ef5c13b95d953f61a4e48e6692c::getInitializer($loader));
|
||||
} else {
|
||||
$map = require __DIR__ . '/autoload_namespaces.php';
|
||||
foreach ($map as $namespace => $path) {
|
||||
@ -48,19 +48,19 @@ class ComposerAutoloaderInit04cda99c86e0d1e594810d779a40708c
|
||||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit04cda99c86e0d1e594810d779a40708c::$files;
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInitc7690ef5c13b95d953f61a4e48e6692c::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire04cda99c86e0d1e594810d779a40708c($fileIdentifier, $file);
|
||||
composerRequirec7690ef5c13b95d953f61a4e48e6692c($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
||||
|
||||
function composerRequire04cda99c86e0d1e594810d779a40708c($fileIdentifier, $file)
|
||||
function composerRequirec7690ef5c13b95d953f61a4e48e6692c($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 ComposerStaticInit04cda99c86e0d1e594810d779a40708c
|
||||
class ComposerStaticInitc7690ef5c13b95d953f61a4e48e6692c
|
||||
{
|
||||
public static $files = array (
|
||||
'9b552a3cc426e3287cc811caefa3cf53' => __DIR__ . '/..' . '/topthink/think-helper/src/helper.php',
|
||||
@ -469,9 +469,9 @@ class ComposerStaticInit04cda99c86e0d1e594810d779a40708c
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit04cda99c86e0d1e594810d779a40708c::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit04cda99c86e0d1e594810d779a40708c::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit04cda99c86e0d1e594810d779a40708c::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitc7690ef5c13b95d953f61a4e48e6692c::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitc7690ef5c13b95d953f61a4e48e6692c::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitc7690ef5c13b95d953f61a4e48e6692c::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
2
vendor/services.php
vendored
2
vendor/services.php
vendored
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
// This file is automatically generated at:2019-11-01 18:59:04
|
||||
// This file is automatically generated at:2019-11-01 19:04:21
|
||||
declare (strict_types = 1);
|
||||
return array (
|
||||
0 => 'think\\app\\Service',
|
||||
|
Loading…
x
Reference in New Issue
Block a user