PHP Class App\Console\Commands\SkinMake

Inheritance: extends Illuminate\Console\Command
Mostra file Open project: xpressengine/xpressengine

Protected Properties

Property Type Description
$attr
$description string The console command description.
$files Illuminate\Filesystem\Filesystem The filesystem instance.
$originComposerStr
$signature

Public Methods

Method Description
__construct ( Illuminate\Filesystem\Filesystem $files ) Create a new controller creator command instance.
fire ( ) : boolean | null Execute the console command.

Protected Methods

Method Description
buildCode ( $stub ) : string buildCode
clean ( ) : void clean
confirmInfo ( ) : boolean confirmInfo
copySkinDirectory ( )
findComposer ( ) : string findComposer
getPath ( ) : PluginEntity get skin directory
getPlugin ( ) : PluginEntity getTargetPlugin
getSkinDescription ( $id, PluginEntity $plugin ) : array | string getSkinDescription
getSkinFile ( PluginEntity $plugin, $path, $skinClass ) : array | string getSkinFile
getSkinId ( PluginEntity $plugin, string $class, string $skinTarget ) : array | string getSkinId
getSkinTarget ( ) : array | string getSkinTarget
getSkinTitle ( ) : array | string getSkinTitle
getStub ( $filename ) : string Get the stub file for the generator.
makeDirectory ( $path ) : void makeDirectory
makeSkinClass ( ) makeSkinClass
registerSkin ( ) : integer registerSkin
replaceCode ( &$stub, $search, $replace ) replaceCode
runComposerDump ( $path )

Private Methods

Method Description
attr ( $key ) : mixed attr

Method Details

__construct() public method

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

buildCode() protected method

buildCode
protected buildCode ( $stub ) : string
$stub
return string

clean() protected method

clean
protected clean ( ) : void
return void

confirmInfo() protected method

confirmInfo
protected confirmInfo ( ) : boolean
return boolean

copySkinDirectory() protected method

protected copySkinDirectory ( )

findComposer() protected method

findComposer
protected findComposer ( ) : string
return string

fire() public method

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

getPath() protected method

get skin directory
protected getPath ( ) : PluginEntity
return Xpressengine\Plugin\PluginEntity

getPlugin() protected method

getTargetPlugin
protected getPlugin ( ) : PluginEntity
return Xpressengine\Plugin\PluginEntity

getSkinDescription() protected method

getSkinDescription
protected getSkinDescription ( $id, PluginEntity $plugin ) : array | string
$id
$plugin Xpressengine\Plugin\PluginEntity
return array | string

getSkinFile() protected method

getSkinFile
protected getSkinFile ( PluginEntity $plugin, $path, $skinClass ) : array | string
$plugin Xpressengine\Plugin\PluginEntity
$path
$skinClass
return array | string

getSkinId() protected method

getSkinId
protected getSkinId ( PluginEntity $plugin, string $class, string $skinTarget ) : array | string
$plugin Xpressengine\Plugin\PluginEntity
$class string
$skinTarget string
return array | string

getSkinTarget() protected method

getSkinTarget
protected getSkinTarget ( ) : array | string
return array | string

getSkinTitle() protected method

getSkinTitle
protected getSkinTitle ( ) : array | string
return array | string

getStub() protected method

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

makeDirectory() protected method

makeDirectory
protected makeDirectory ( $path ) : void
$path
return void

makeSkinClass() protected method

makeSkinClass
protected makeSkinClass ( )

registerSkin() protected method

registerSkin
protected registerSkin ( ) : integer
return integer

replaceCode() protected method

replaceCode
protected replaceCode ( &$stub, $search, $replace )
$stub
$search
$replace

runComposerDump() protected method

protected runComposerDump ( $path )

Property Details

$attr protected_oe property

protected $attr

$description protected_oe property

The console command description.
protected string $description
return string

$files protected_oe property

The filesystem instance.
protected Filesystem,Illuminate\Filesystem $files
return Illuminate\Filesystem\Filesystem

$originComposerStr protected_oe property

protected $originComposerStr

$signature protected_oe property

protected $signature