2019-11-01 18:03:14 +08:00

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);
}
}