PHP Класс App\Console\Commands\PluginMake

Наследование: extends Illuminate\Console\Command
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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