2020-06-24 08:47:46 +08:00
|
|
|
|
<?php
|
|
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
|
// | CatchAdmin [Just Like ~ ]
|
|
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
|
// | Copyright (c) 2017~2020 http://catchadmin.com All rights reserved.
|
|
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
|
// | Licensed ( https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt )
|
|
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
|
// | Author: JaguarJack [ njphper@gmail.com ]
|
|
|
|
|
// +----------------------------------------------------------------------
|
2020-06-24 09:10:01 +08:00
|
|
|
|
namespace catchAdmin\system;
|
|
|
|
|
|
|
|
|
|
use catchAdmin\system\events\AttachmentEvent;
|
2020-09-12 17:22:43 +08:00
|
|
|
|
use catcher\command\MigrateRunCommand;
|
|
|
|
|
use catcher\command\SeedRunCommand;
|
2020-06-24 09:10:01 +08:00
|
|
|
|
use catcher\ModuleService;
|
|
|
|
|
|
|
|
|
|
class SystemService extends ModuleService
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public function loadRouteFrom()
|
|
|
|
|
{
|
|
|
|
|
// TODO: Implement loadRouteFrom() method.
|
|
|
|
|
return __DIR__ . DIRECTORY_SEPARATOR . 'route.php';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function loadEvents()
|
|
|
|
|
{
|
|
|
|
|
return [
|
|
|
|
|
'attachment' => [ AttachmentEvent::class ],
|
|
|
|
|
];
|
|
|
|
|
}
|
2020-09-12 17:22:43 +08:00
|
|
|
|
|
|
|
|
|
protected function registerCommands()
|
|
|
|
|
{
|
|
|
|
|
$this->commands([
|
|
|
|
|
MigrateRunCommand::class,
|
|
|
|
|
SeedRunCommand::class,
|
|
|
|
|
]);
|
|
|
|
|
}
|
2020-06-24 09:10:01 +08:00
|
|
|
|
}
|