PHP Class App\Console\Commands\ThemeMake

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
copyThemeDirectory ( )
findComposer ( ) : string findComposer
getPath ( ) : PluginEntity get theme directory
getPlugin ( ) : PluginEntity getTargetPlugin
getStub ( $filename ) : string Get the stub file for the generator.
getThemeDescription ( $id, PluginEntity $plugin ) : array | string getThemeDescription
getThemeFile ( PluginEntity $plugin, $path, $themeClass ) : array | string getThemeFile
getThemeId ( PluginEntity $plugin, $class ) : array | string getThemeId
getThemeTitle ( ) : array | string getThemeTitle
makeDirectory ( $path ) : void makeDirectory
makeThemeClass ( ) makeThemeClass
registerTheme ( ) : integer registerTheme
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

copyThemeDirectory() protected method

protected copyThemeDirectory ( )

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 theme directory
protected getPath ( ) : PluginEntity
return Xpressengine\Plugin\PluginEntity

getPlugin() protected method

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

getStub() protected method

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

getThemeDescription() protected method

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

getThemeFile() protected method

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

getThemeId() protected method

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

getThemeTitle() protected method

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

makeDirectory() protected method

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

makeThemeClass() protected method

makeThemeClass
protected makeThemeClass ( )

registerTheme() protected method

registerTheme
protected registerTheme ( ) : 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