\Mine\GeneratorModuleGenerator

Summary

Methods
Properties
Constants
__construct()
getStubDir()
setStubDir()
getNamespace()
setNamespace()
setModuleInfo()
createModule()
No public properties found
No constants found
createConfigJson()
getGeneratorDirs()
$stubDir
$namespace
$container
$moduleInfo
N/A
No private methods found
No private properties found
N/A

Properties

$stubDir

$stubDir : string

Type

string

$namespace

$namespace : string

Type

string

$container

$container : \Psr\Container\ContainerInterface

Type

\Psr\Container\ContainerInterface

$moduleInfo

$moduleInfo : array

Type

array

Methods

__construct()

__construct(\Psr\Container\ContainerInterface  $container) 

MineGenerator constructor.

Parameters

\Psr\Container\ContainerInterface $container

getStubDir()

getStubDir() 

setStubDir()

setStubDir(\Mine\Generator\string  $stubDir) 

Parameters

\Mine\Generator\string $stubDir

getNamespace()

getNamespace() : string

Returns

string

setNamespace()

setNamespace(mixed  $namespace) 

Parameters

mixed $namespace

setModuleInfo()

setModuleInfo(array  $moduleInfo) : $this

设置模块信息

Parameters

array $moduleInfo

Returns

$this

createModule()

createModule() 

生成模块基础架构

createConfigJson()

createConfigJson(\Hyperf\Utils\Filesystem\Filesystem  $filesystem) 

创建模块JSON文件

Parameters

\Hyperf\Utils\Filesystem\Filesystem $filesystem

getGeneratorDirs()

getGeneratorDirs() 

生成的目录列表