moduleService = new ModuleService(); } /** * @throws \Exception */ public function runAtPath(string $path = ROOT_DIR . '/migrations'): array { try { $dmr = new DatabaseMigrationRepository(App::$db->capsule->getDatabaseManager(), 'migration'); $m = new Migrator($dmr, App::$db->capsule->getDatabaseManager(), new Filesystem()); return $m->run($path); } catch (\Exception $e) { throw new \Exception('Не удалось поднять играции'); } } }