PHP Class Illuminate\Foundation\Console\AppNameCommand

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

Protected Properties

Свойство 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.

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

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
Résultat void

fire() public méthode

Execute the console command.
public fire ( ) : void
Résultat void

getArguments() protected méthode

Get the console command arguments.
protected getArguments ( ) : array
Résultat array

getBootstrapPath() protected méthode

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

getComposerPath() protected méthode

Get the path to the Composer.json file.
protected getComposerPath ( ) : string
Résultat string

getConfigPath() protected méthode

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

replaceIn() protected méthode

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
Résultat void

replaceNamespace() protected méthode

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

setAppConfigNamespaces() protected méthode

Set the application provider namespaces.
protected setAppConfigNamespaces ( ) : void
Résultat void

setAppDirectoryNamespace() protected méthode

Set the namespace on the files in the app directory.
protected setAppDirectoryNamespace ( ) : void
Résultat void

setAuthConfigNamespace() protected méthode

Set the authentication User namespace.
protected setAuthConfigNamespace ( ) : void
Résultat void

setBootstrapNamespaces() protected méthode

Set the bootstrap namespaces.
protected setBootstrapNamespaces ( ) : void
Résultat void

setComposerNamespace() protected méthode

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

setConfigNamespaces() protected méthode

Set the namespace in the appropriate configuration files.
protected setConfigNamespaces ( ) : void
Résultat void

setDatabaseFactoryNamespaces() protected méthode

Set the namespace in database factory files.
protected setDatabaseFactoryNamespaces ( ) : void
Résultat void

setServicesConfigNamespace() protected méthode

Set the services User namespace.
protected setServicesConfigNamespace ( ) : void
Résultat void

Property Details

$composer protected_oe property

The Composer class instance.
protected Composer,Illuminate\Support $composer
Résultat Illuminate\Support\Composer

$currentRoot protected_oe property

Current root application namespace.
protected string $currentRoot
Résultat string

$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