catchAdmin/catch/system/SystemService.php

41 lines
1.3 KiB
PHP
Raw Normal View History

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 ]
// +----------------------------------------------------------------------
namespace catchAdmin\system;
use catchAdmin\system\events\AttachmentEvent;
2020-09-12 17:22:43 +08:00
use catcher\command\MigrateRunCommand;
use catcher\command\SeedRunCommand;
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,
]);
}
}