ModuleServiceProvider
abstract class Winter\Storm\Support\ModuleServiceProvider
extends Illuminate\Support\ServiceProvider
Extends
Class | Description |
---|---|
Illuminate\Support\ServiceProvider
|
Properties
protected $app : Winter\Storm\Foundation\Application
The application instance.
Methods
public boot () : void
Bootstrap the application events.
Returns
void
public getModule () : string
Gets the name of this module
Returns
string
public provides () : array
Get the services provided by the provider.
Returns
array
public register () : void
Registers the Module service provider.
Returns
void
public registerConsoleCommand (string $key, string $class) : void
Registers a new console (artisan) command
Parameters
Property | Type | Description |
---|---|---|
$key | string |
string
The command name |
$class | string |
string
The command class |
Returns
void
protected loadConfigFrom (string $path, string $namespace) : void
Register a config file namespace.
Parameters
Property | Type | Description |
---|---|---|
$path | string |
string
|
$namespace | string |
string
|
Returns
void
Copyright © 2024 Winter CMS