初始化
This commit is contained in:
4
config/plugin/rockys/ex-admin-webman/app.php
Normal file
4
config/plugin/rockys/ex-admin-webman/app.php
Normal file
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
return [
|
||||
'enable' => true,
|
||||
];
|
||||
17
config/plugin/rockys/ex-admin-webman/bootstrap.php
Normal file
17
config/plugin/rockys/ex-admin-webman/bootstrap.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/**
|
||||
* This file is part of webman.
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the MIT-LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @author walkor<walkor@workerman.net>
|
||||
* @copyright walkor<walkor@workerman.net>
|
||||
* @link http://www.workerman.net/
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
return [
|
||||
\ExAdmin\webman\ServiceProvider::class
|
||||
];
|
||||
6
config/plugin/rockys/ex-admin-webman/command.php
Normal file
6
config/plugin/rockys/ex-admin-webman/command.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
\ExAdmin\webman\command\AdminInstall::class,
|
||||
\ExAdmin\webman\command\PluginComposer::class,
|
||||
];
|
||||
39
config/plugin/rockys/ex-admin-webman/filesystems.php
Normal file
39
config/plugin/rockys/ex-admin-webman/filesystems.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Filesystem Disk
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify the default filesystem disk that should be used
|
||||
| by the framework. The "local" disk, as well as a variety of cloud
|
||||
| based disks are available to your application. Just store away!
|
||||
|
|
||||
*/
|
||||
|
||||
'default' => env('FILESYSTEM_DRIVER', 'local'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Filesystem Disks
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may configure as many filesystem "disks" as you wish, and you
|
||||
| may even configure multiple disks of the same driver. Defaults have
|
||||
| been setup for each driver as an example of the required options.
|
||||
|
|
||||
| Supported Drivers: "local", "ftp", "sftp", "s3"
|
||||
|
|
||||
*/
|
||||
|
||||
'disks' => [
|
||||
'local' => [
|
||||
'driver' => \addons\webman\filesystem\driver\Local::class,
|
||||
'root' => public_path('storage'),
|
||||
'url' => env('APP_URL','http://127.0.0.1:8787').'/storage',
|
||||
'visibility' => 'public',
|
||||
],
|
||||
],
|
||||
];
|
||||
20
config/plugin/rockys/ex-admin-webman/middleware.php
Normal file
20
config/plugin/rockys/ex-admin-webman/middleware.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/**
|
||||
* This file is part of webman.
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the MIT-LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @author walkor<walkor@workerman.net>
|
||||
* @copyright walkor<walkor@workerman.net>
|
||||
* @link http://www.workerman.net/
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
return [
|
||||
'' => [
|
||||
\ExAdmin\webman\middleware\RequestMiddleware::class
|
||||
]
|
||||
|
||||
];
|
||||
11
config/plugin/rockys/ex-admin-webman/process.php
Normal file
11
config/plugin/rockys/ex-admin-webman/process.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
return [
|
||||
'ex_admin_consumer' => [
|
||||
'handler' => Webman\RedisQueue\Process\Consumer::class,
|
||||
'count' => 8, // 可以设置多进程同时消费
|
||||
'constructor' => [
|
||||
// 消费者类目录
|
||||
'consumer_dir' => base_path() . '/addons/webman/grid/Jobs'
|
||||
]
|
||||
]
|
||||
];
|
||||
11
config/plugin/rockys/ex-admin-webman/route.php
Normal file
11
config/plugin/rockys/ex-admin-webman/route.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
if(plugin()->webman){
|
||||
plugin()->webman->route();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user