Property | Type | Description | |
---|---|---|---|
$config | Illuminate\Config\Repository | The laravel config instance. | |
$console | Illuminate\Console\Command | The laravel console instance. | |
$filesystem | Illuminate\Filesystem\Filesystem | The laravel filesystem instance. | |
$force | boolean | Force status. | |
$module | Module | The pingpong module instance. | |
$name | string | The module name will created. | |
$plain | boolean | Generate a plain module. |
Method | Description | |
---|---|---|
__construct ( $name, |
The constructor. | |
generate ( ) | Generate the module. | |
generateFiles ( ) | Generate the files. | |
generateFolders ( ) | Generate the folders. | |
generateGitKeep ( string $path ) | Generate git keep to the specified path. | |
generateResources ( ) | Generate some resources. | |
getConfig ( ) : Illuminate\Config\Repository | Get the laravel config instance. | |
getConsole ( ) : Illuminate\Console\Command | Get the laravel console instance. | |
getFiles ( ) : array | Get the list of files will created. | |
getFilesystem ( ) : Illuminate\Filesystem\Filesystem | Get the laravel filesystem instance. | |
getFolders ( ) : array | Get the list of folders will created. | |
getModule ( ) : Module | Get the pingpong module instance. | |
getName ( ) : string | Get the name of module will created. By default in studly case. | |
getReplacements ( ) | get the list for the replacements. | |
setConfig ( Illuminate\Config\Repository $config ) | Set the laravel config instance. | |
setConsole ( Illuminate\Console\Command $console ) | Set the laravel console instance. | |
setFilesystem ( Illuminate\Filesystem\Filesystem $filesystem ) | Set the laravel filesystem instance. | |
setForce ( boolean | integer $force ) | Set force status. | |
setModule ( mixed $module ) | Set the pingpong module instance. | |
setPlain ( boolean $plain ) | Set plain flag. |
Method | Description | |
---|---|---|
getAuthorEmailReplacement ( ) : string | Get replacement for $AUTHOR_EMAIL$. | |
getAuthorNameReplacement ( ) : string | Get replacement for $AUTHOR_NAME$. | |
getLowerNameReplacement ( ) : string | Get the module name in lower case. | |
getModuleNamespaceReplacement ( ) : string | Get replacement for $MODULE_NAMESPACE$. | |
getReplacement ( $stub ) : array | Get array replacement for the specified stub. | |
getStubContents ( $stub ) : |
Get the contents of the specified stub file by given stub name. | |
getStudlyNameReplacement ( ) : string | Get the module name in studly case. | |
getVendorReplacement ( ) : string | Get replacement for $VENDOR$. |
public __construct ( $name, |
||
$name | ||
$module | ||
$config | Illuminate\Config\Repository | |
$filesystem | Illuminate\Filesystem\Filesystem | |
$console | Illuminate\Console\Command |
public generateGitKeep ( string $path ) | ||
$path | string |
protected getAuthorEmailReplacement ( ) : string | ||
return | string |
protected getAuthorNameReplacement ( ) : string | ||
return | string |
public getConfig ( ) : Illuminate\Config\Repository | ||
return | Illuminate\Config\Repository |
public getConsole ( ) : Illuminate\Console\Command | ||
return | Illuminate\Console\Command |
public getFilesystem ( ) : Illuminate\Filesystem\Filesystem | ||
return | Illuminate\Filesystem\Filesystem |
public getFolders ( ) : array | ||
return | array |
protected getLowerNameReplacement ( ) : string | ||
return | string |
public getModule ( ) : Module | ||
return | Module |
protected getModuleNamespaceReplacement ( ) : string | ||
return | string |
protected getReplacement ( $stub ) : array | ||
$stub | ||
return | array |
protected getStubContents ( $stub ) : |
||
$stub | ||
return |
protected getStudlyNameReplacement ( ) : string | ||
return | string |
protected getVendorReplacement ( ) : string | ||
return | string |
public setConfig ( Illuminate\Config\Repository $config ) | ||
$config | Illuminate\Config\Repository |
public setConsole ( Illuminate\Console\Command $console ) | ||
$console | Illuminate\Console\Command |
public setFilesystem ( Illuminate\Filesystem\Filesystem $filesystem ) | ||
$filesystem | Illuminate\Filesystem\Filesystem |
protected Repository,Illuminate\Config $config | ||
return | Illuminate\Config\Repository |
protected Command,Illuminate\Console $console | ||
return | Illuminate\Console\Command |
protected Filesystem,Illuminate\Filesystem $filesystem | ||
return | Illuminate\Filesystem\Filesystem |