Property | Type | Description | |
---|---|---|---|
$description | string | The console command description. | |
$files | Illuminate\Filesystem\Filesystem | The filesystem instance. | |
$name | string | The console command name. |
Method | Description | |
---|---|---|
__construct ( Illuminate\Filesystem\Filesystem $files ) : void | Create a new controller creator command instance. | |
fire ( ) : boolean | null | Execute the console command. |
Method | 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 ) |
public __construct ( Illuminate\Filesystem\Filesystem $files ) : void | ||
$files | Illuminate\Filesystem\Filesystem | |
return | void |
protected buildComposerCode ( $pluginName, $namespace, $title ) : string | ||
$pluginName | ||
$namespace | ||
return | string |
protected buildPluginCode ( $pluginName, $namespace, $title ) : string | ||
return | string |
protected getArguments ( ) : array | ||
return | array |
protected getNamespace ( ) : string | ||
return | string |
protected getNamespaceInput ( ) : string | ||
return | string |
protected getTitleInput ( ) : string | ||
return | string |
protected makeComposerJson ( $path, $pluginName, $namespace, $title ) : void | ||
$path | ||
$pluginName | ||
$namespace | ||
return | void |
protected makeDirectory ( $path ) : void | ||
$path | ||
return | void |
protected makePluginClass ( $path, $name, $namespace, $title ) : void | ||
$path | ||
$name | ||
$namespace | ||
return | void |
protected replaceClass ( string &$stub, string $name ) : static | ||
$stub | string | |
$name | string | |
return | static |
protected replaceNamespace ( string &$stub, $namespace ) | ||
$stub | string |
protected replacePackageName ( string &$stub, $packageName ) | ||
$stub | string |
protected replacePluginName ( string &$stub, string $pluginName ) : static | ||
$stub | string | |
$pluginName | string | |
return | static |
protected replacePluginTitle ( string &$stub, $title ) | ||
$stub | string |
protected string $description | ||
return | string |
protected Filesystem,Illuminate\Filesystem $files | ||
return | Illuminate\Filesystem\Filesystem |