setDescription('Create a new service class'); $this->setHelp('php bin/hyperf.php gen:service /folder/fileService'); } /** * 获取 stubs * @return string */ protected function getStub(): string { return __DIR__ . '/stubs/service.stub'; } /** * 获取默认命名空间 * @return string */ protected function getDefaultNamespace(): string { return 'App\\Service'; } }