1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- namespace catchAdmin\system;
- use catchAdmin\system\events\AttachmentEvent;
- use catcher\command\MigrateRunCommand;
- use catcher\command\SeedRunCommand;
- use catcher\ModuleService;
- class SystemService extends ModuleService
- {
- public function loadRouteFrom()
- {
-
- return __DIR__ . DIRECTORY_SEPARATOR . 'route.php';
- }
- public function loadEvents()
- {
- return [
- 'attachment' => [ AttachmentEvent::class ],
- ];
- }
- protected function registerCommands()
- {
- $this->commands([
- MigrateRunCommand::class,
- SeedRunCommand::class,
- ]);
- }
- }
|