PHP Class Illuminate\Foundation\Console\AppNameCommand

Inheritance: extends Illuminate\Console\Command
显示文件 Open project: laravel/framework

Protected Properties

Property Type Description
$composer Illuminate\Support\Composer The Composer class instance.
$currentRoot string Current root application namespace.
$description string The console command description.
$files Illuminate\Filesystem\Filesystem The filesystem instance.
$name string The console command name.

Public Methods

Method Description
__construct ( Illuminate\Support\Composer $composer, Illuminate\Filesystem\Filesystem $files ) : void Create a new key generator command.
fire ( ) : void Execute the console command.

Protected Methods

Method Description
getArguments ( ) : array Get the console command arguments.
getBootstrapPath ( ) : string Get the path to the bootstrap/app.php file.
getComposerPath ( ) : string Get the path to the Composer.json file.
getConfigPath ( string $name ) : string Get the path to the given configuration file.
replaceIn ( string $path, string | array $search, string | array $replace ) : void Replace the given string in the given file.
replaceNamespace ( string $path ) : void Replace the App namespace at the given path.
setAppConfigNamespaces ( ) : void Set the application provider namespaces.
setAppDirectoryNamespace ( ) : void Set the namespace on the files in the app directory.
setAuthConfigNamespace ( ) : void Set the authentication User namespace.
setBootstrapNamespaces ( ) : void Set the bootstrap namespaces.
setComposerNamespace ( ) : void Set the PSR-4 namespace in the Composer file.
setConfigNamespaces ( ) : void Set the namespace in the appropriate configuration files.
setDatabaseFactoryNamespaces ( ) : void Set the namespace in database factory files.
setServicesConfigNamespace ( ) : void Set the services User namespace.

Method Details

__construct() public method

Create a new key generator command.
public __construct ( Illuminate\Support\Composer $composer, Illuminate\Filesystem\Filesystem $files ) : void
$composer Illuminate\Support\Composer
$files Illuminate\Filesystem\Filesystem
return void

fire() public method

Execute the console command.
public fire ( ) : void
return void

getArguments() protected method

Get the console command arguments.
protected getArguments ( ) : array
return array

getBootstrapPath() protected method

Get the path to the bootstrap/app.php file.
protected getBootstrapPath ( ) : string
return string

getComposerPath() protected method

Get the path to the Composer.json file.
protected getComposerPath ( ) : string
return string

getConfigPath() protected method

Get the path to the given configuration file.
protected getConfigPath ( string $name ) : string
$name string
return string

replaceIn() protected method

Replace the given string in the given file.
protected replaceIn ( string $path, string | array $search, string | array $replace ) : void
$path string
$search string | array
$replace string | array
return void

replaceNamespace() protected method

Replace the App namespace at the given path.
protected replaceNamespace ( string $path ) : void
$path string
return void

setAppConfigNamespaces() protected method

Set the application provider namespaces.
protected setAppConfigNamespaces ( ) : void
return void

setAppDirectoryNamespace() protected method

Set the namespace on the files in the app directory.
protected setAppDirectoryNamespace ( ) : void
return void

setAuthConfigNamespace() protected method

Set the authentication User namespace.
protected setAuthConfigNamespace ( ) : void
return void

setBootstrapNamespaces() protected method

Set the bootstrap namespaces.
protected setBootstrapNamespaces ( ) : void
return void

setComposerNamespace() protected method

Set the PSR-4 namespace in the Composer file.
protected setComposerNamespace ( ) : void
return void

setConfigNamespaces() protected method

Set the namespace in the appropriate configuration files.
protected setConfigNamespaces ( ) : void
return void

setDatabaseFactoryNamespaces() protected method

Set the namespace in database factory files.
protected setDatabaseFactoryNamespaces ( ) : void
return void

setServicesConfigNamespace() protected method

Set the services User namespace.
protected setServicesConfigNamespace ( ) : void
return void

Property Details

$composer protected_oe property

The Composer class instance.
protected Composer,Illuminate\Support $composer
return Illuminate\Support\Composer

$currentRoot protected_oe property

Current root application namespace.
protected string $currentRoot
return string

$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

$name protected_oe property

The console command name.
protected string $name
return string