PHP Class App\Console\Commands\PluginMake

Inheritance: extends Illuminate\Console\Command
Afficher le fichier Open project: xpressengine/xpressengine

Protected Properties

Свойство Type Description
$description string The console command description.
$files Illuminate\Filesystem\Filesystem The filesystem instance.
$name string The console command name.

Méthodes publiques

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

Méthodes protégées

Méthode Description
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 )

Method Details

__construct() public méthode

Create a new controller creator command instance.
public __construct ( Illuminate\Filesystem\Filesystem $files ) : void
$files Illuminate\Filesystem\Filesystem
Résultat void

activatePlugin() protected méthode

protected activatePlugin ( $name )

buildComposerCode() protected méthode

buildComposerCode
protected buildComposerCode ( $pluginName, $namespace, $title ) : string
$pluginName
$namespace
Résultat string

buildPluginCode() protected méthode

Build the class with the given name.
protected buildPluginCode ( $pluginName, $namespace, $title ) : string
Résultat string

checkEnv() protected méthode

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

findComposer() protected méthode

findComposer
protected findComposer ( ) : string
Résultat string

fire() public méthode

Execute the console command.
public fire ( ) : boolean | null
Résultat boolean | null

getArguments() protected méthode

name, namespace, title
protected getArguments ( ) : array
Résultat array

getNamespace() protected méthode

Get the full namespace name for a given class.
protected getNamespace ( ) : string
Résultat string

getNamespaceInput() protected méthode

Get the desired class namespace from the input.
protected getNamespaceInput ( ) : string
Résultat string

getPluginName() protected méthode

getPluginName
protected getPluginName ( ) : string
Résultat string

getStub() protected méthode

Get the stub file for the generator.
protected getStub ( $filename ) : string
Résultat string

getTitleInput() protected méthode

Get the desired class title from the input.
protected getTitleInput ( ) : string
Résultat string

makeComposerJson() protected méthode

makeComposerJson
protected makeComposerJson ( $path, $pluginName, $namespace, $title ) : void
$path
$pluginName
$namespace
Résultat void

makeDirectory() protected méthode

makeDirectory
protected makeDirectory ( $path ) : void
$path
Résultat void

makeDirectoryStructure() protected méthode

protected makeDirectoryStructure ( $path )

makePluginClass() protected méthode

makePluginClass
protected makePluginClass ( $path, $name, $namespace, $title ) : void
$path
$name
$namespace
Résultat void

replaceClass() protected méthode

Replace the class name for the given stub.
protected replaceClass ( string &$stub, string $name ) : static
$stub string
$name string
Résultat static

replaceNamespace() protected méthode

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

replacePackageName() protected méthode

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

replacePluginName() protected méthode

Replace the class name for the given stub.
protected replacePluginName ( string &$stub, string $pluginName ) : static
$stub string
$pluginName string
Résultat static

replacePluginTitle() protected méthode

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

runComposerDump() protected méthode

protected runComposerDump ( $path )

Property Details

$description protected_oe property

The console command description.
protected string $description
Résultat string

$files protected_oe property

The filesystem instance.
protected Filesystem,Illuminate\Filesystem $files
Résultat Illuminate\Filesystem\Filesystem

$name protected_oe property

The console command name.
protected string $name
Résultat string