mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-10-04 07:59:57 +08:00
23 lines
479 B
PHP
23 lines
479 B
PHP
<?php
|
|
|
|
namespace think\admin\plugs;
|
|
|
|
use think\console\Input;
|
|
use think\console\Output;
|
|
|
|
class AdminPlugs extends Plugs
|
|
{
|
|
protected function configure()
|
|
{
|
|
$this->modules = ['application/admin/', 'think'];
|
|
$this->setName('xplugs:admin')->setDescription('[同步]覆盖本地Admin模块代码');
|
|
}
|
|
|
|
protected function execute(Input $input, Output $output)
|
|
{
|
|
$this->modules[] = 'admin';
|
|
parent::execute($input, $output);
|
|
|
|
}
|
|
|
|
} |