PHP 클래스 App\Console\Commands\PluginMake

상속: extends Illuminate\Console\Command
파일 보기 프로젝트 열기: xpressengine/xpressengine

보호된 프로퍼티들

프로퍼티 타입 설명
$description string The console command description.
$files Illuminate\Filesystem\Filesystem The filesystem instance.
$name string The console command name.

공개 메소드들

메소드 설명
__construct ( Illuminate\Filesystem\Filesystem $files ) : void Create a new controller creator command instance.
fire ( ) : boolean | null Execute the console command.

보호된 메소드들

메소드 설명
activatePlugin ( $name )
buildComposerCode ( $pluginName, $namespace, $title ) : string buildComposerCode
buildPluginCode ( $pluginName, $namespace, $title ) : string Build the class with the given name.
checkEnv ( $path, $name, $namespace, $title )
findComposer ( ) : string findComposer
getArguments ( ) : array Get the console command arguments.
getNamespace ( ) : string Get the full namespace name for a given class.
getNamespaceInput ( ) : string Get the desired class namespace from the input.
getPluginName ( ) : string getPluginName
getStub ( $filename ) : string Get the stub file for the generator.
getTitleInput ( ) : string Get the desired class title from the input.
makeComposerJson ( $path, $pluginName, $namespace, $title ) : void makeComposerJson
makeDirectory ( $path ) : void makeDirectory
makeDirectoryStructure ( $path )
makePluginClass ( $path, $name, $namespace, $title ) : void makePluginClass
replaceClass ( string &$stub, string $name ) : static Replace the class name for the given stub.
replaceNamespace ( string &$stub, $namespace ) replaceNamespace
replacePackageName ( string &$stub, $packageName ) replacePackageName
replacePluginName ( string &$stub, string $pluginName ) : static Replace the class name for the given stub.
replacePluginTitle ( string &$stub, $title ) replacePluginTitle
runComposerDump ( $path )

메소드 상세

__construct() 공개 메소드

Create a new controller creator command instance.
public __construct ( Illuminate\Filesystem\Filesystem $files ) : void
$files Illuminate\Filesystem\Filesystem
리턴 void

activatePlugin() 보호된 메소드

protected activatePlugin ( $name )

buildComposerCode() 보호된 메소드

buildComposerCode
protected buildComposerCode ( $pluginName, $namespace, $title ) : string
$pluginName
$namespace
리턴 string

buildPluginCode() 보호된 메소드

Build the class with the given name.
protected buildPluginCode ( $pluginName, $namespace, $title ) : string
리턴 string

checkEnv() 보호된 메소드

protected checkEnv ( $path, $name, $namespace, $title )

findComposer() 보호된 메소드

findComposer
protected findComposer ( ) : string
리턴 string

fire() 공개 메소드

Execute the console command.
public fire ( ) : boolean | null
리턴 boolean | null

getArguments() 보호된 메소드

name, namespace, title
protected getArguments ( ) : array
리턴 array

getNamespace() 보호된 메소드

Get the full namespace name for a given class.
protected getNamespace ( ) : string
리턴 string

getNamespaceInput() 보호된 메소드

Get the desired class namespace from the input.
protected getNamespaceInput ( ) : string
리턴 string

getPluginName() 보호된 메소드

getPluginName
protected getPluginName ( ) : string
리턴 string

getStub() 보호된 메소드

Get the stub file for the generator.
protected getStub ( $filename ) : string
리턴 string

getTitleInput() 보호된 메소드

Get the desired class title from the input.
protected getTitleInput ( ) : string
리턴 string

makeComposerJson() 보호된 메소드

makeComposerJson
protected makeComposerJson ( $path, $pluginName, $namespace, $title ) : void
$path
$pluginName
$namespace
리턴 void

makeDirectory() 보호된 메소드

makeDirectory
protected makeDirectory ( $path ) : void
$path
리턴 void

makeDirectoryStructure() 보호된 메소드

protected makeDirectoryStructure ( $path )

makePluginClass() 보호된 메소드

makePluginClass
protected makePluginClass ( $path, $name, $namespace, $title ) : void
$path
$name
$namespace
리턴 void

replaceClass() 보호된 메소드

Replace the class name for the given stub.
protected replaceClass ( string &$stub, string $name ) : static
$stub string
$name string
리턴 static

replaceNamespace() 보호된 메소드

replaceNamespace
protected replaceNamespace ( string &$stub, $namespace )
$stub string

replacePackageName() 보호된 메소드

replacePackageName
protected replacePackageName ( string &$stub, $packageName )
$stub string

replacePluginName() 보호된 메소드

Replace the class name for the given stub.
protected replacePluginName ( string &$stub, string $pluginName ) : static
$stub string
$pluginName string
리턴 static

replacePluginTitle() 보호된 메소드

replacePluginTitle
protected replacePluginTitle ( string &$stub, $title )
$stub string

runComposerDump() 보호된 메소드

protected runComposerDump ( $path )

프로퍼티 상세

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

The console command description.
protected string $description
리턴 string

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

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

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

The console command name.
protected string $name
리턴 string