PHP 클래스 Nwidart\Modules\Generators\ModuleGenerator

상속: extends Generator
파일 보기 프로젝트 열기: nwidart/laravel-modules

보호된 프로퍼티들

프로퍼티 타입 설명
$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.

공개 메소드들

메소드 설명
__construct ( $name, Repository $module = null, Illuminate\Config\Repository $config = null, Illuminate\Filesystem\Filesystem $filesystem = null, Illuminate\Console\Command $console = null ) 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.

보호된 메소드들

메소드 설명
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 ) : 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$.

메소드 상세

__construct() 공개 메소드

The constructor.
public __construct ( $name, Repository $module = null, Illuminate\Config\Repository $config = null, Illuminate\Filesystem\Filesystem $filesystem = null, Illuminate\Console\Command $console = null )
$name
$module Nwidart\Modules\Repository
$config Illuminate\Config\Repository
$filesystem Illuminate\Filesystem\Filesystem
$console Illuminate\Console\Command

generate() 공개 메소드

Generate the module.
public generate ( )

generateFiles() 공개 메소드

Generate the files.
public generateFiles ( )

generateFolders() 공개 메소드

Generate the folders.
public generateFolders ( )

generateGitKeep() 공개 메소드

Generate git keep to the specified path.
public generateGitKeep ( string $path )
$path string

generateResources() 공개 메소드

Generate some resources.
public generateResources ( )

getAuthorEmailReplacement() 보호된 메소드

Get replacement for $AUTHOR_EMAIL$.
protected getAuthorEmailReplacement ( ) : string
리턴 string

getAuthorNameReplacement() 보호된 메소드

Get replacement for $AUTHOR_NAME$.
protected getAuthorNameReplacement ( ) : string
리턴 string

getConfig() 공개 메소드

Get the laravel config instance.
public getConfig ( ) : Illuminate\Config\Repository
리턴 Illuminate\Config\Repository

getConsole() 공개 메소드

Get the laravel console instance.
public getConsole ( ) : Illuminate\Console\Command
리턴 Illuminate\Console\Command

getFiles() 공개 메소드

Get the list of files will created.
public getFiles ( ) : array
리턴 array

getFilesystem() 공개 메소드

Get the laravel filesystem instance.
public getFilesystem ( ) : Illuminate\Filesystem\Filesystem
리턴 Illuminate\Filesystem\Filesystem

getFolders() 공개 메소드

Get the list of folders will created.
public getFolders ( ) : array
리턴 array

getLowerNameReplacement() 보호된 메소드

Get the module name in lower case.
protected getLowerNameReplacement ( ) : string
리턴 string

getModule() 공개 메소드

Get the pingpong module instance.
public getModule ( ) : Module
리턴 Module

getModuleNamespaceReplacement() 보호된 메소드

Get replacement for $MODULE_NAMESPACE$.

getName() 공개 메소드

Get the name of module will created. By default in studly case.
public getName ( ) : string
리턴 string

getReplacement() 보호된 메소드

Get array replacement for the specified stub.
protected getReplacement ( $stub ) : array
$stub
리턴 array

getReplacements() 공개 메소드

get the list for the replacements.
public getReplacements ( )

getStubContents() 보호된 메소드

Get the contents of the specified stub file by given stub name.
protected getStubContents ( $stub ) : Stub
$stub
리턴 Nwidart\Modules\Support\Stub

getStudlyNameReplacement() 보호된 메소드

Get the module name in studly case.
protected getStudlyNameReplacement ( ) : string
리턴 string

getVendorReplacement() 보호된 메소드

Get replacement for $VENDOR$.
protected getVendorReplacement ( ) : string
리턴 string

setConfig() 공개 메소드

Set the laravel config instance.
public setConfig ( Illuminate\Config\Repository $config )
$config Illuminate\Config\Repository

setConsole() 공개 메소드

Set the laravel console instance.
public setConsole ( Illuminate\Console\Command $console )
$console Illuminate\Console\Command

setFilesystem() 공개 메소드

Set the laravel filesystem instance.
public setFilesystem ( Illuminate\Filesystem\Filesystem $filesystem )
$filesystem Illuminate\Filesystem\Filesystem

setForce() 공개 메소드

Set force status.
public setForce ( boolean | integer $force )
$force boolean | integer

setModule() 공개 메소드

Set the pingpong module instance.
public setModule ( mixed $module )
$module mixed

setPlain() 공개 메소드

Set plain flag.
public setPlain ( boolean $plain )
$plain boolean

프로퍼티 상세

$config 보호되어 있는 프로퍼티

The laravel config instance.
protected Repository,Illuminate\Config $config
리턴 Illuminate\Config\Repository

$console 보호되어 있는 프로퍼티

The laravel console instance.
protected Command,Illuminate\Console $console
리턴 Illuminate\Console\Command

$filesystem 보호되어 있는 프로퍼티

The laravel filesystem instance.
protected Filesystem,Illuminate\Filesystem $filesystem
리턴 Illuminate\Filesystem\Filesystem

$force 보호되어 있는 프로퍼티

Force status.
protected bool $force
리턴 boolean

$module 보호되어 있는 프로퍼티

The pingpong module instance.
protected Module $module
리턴 Module

$name 보호되어 있는 프로퍼티

The module name will created.
protected string $name
리턴 string

$plain 보호되어 있는 프로퍼티

Generate a plain module.
protected bool $plain
리턴 boolean