BaseExtension
class BaseExtension extends ServiceProvider
Base Extension Class
Properties
protected array | $config | ||
array | $autoload | ||
bool | $disabled |
Methods
Register method called when the extension is first installed.
Boot method, called right before the request route.
Returns information about this extension
Registers any front-end components implemented in this extension.
Registers any payment gateway implemented in this extension.
Registers back-end navigation menu items for this extension.
Registers any back-end permissions used by this extension.
Registers the back-end setting links used by this extension.
Registers scheduled tasks that are executed on a regular basis.
Registers any dashboard widgets provided by this extension.
Registers any form widgets implemented in this extension.
Registers any mail templates implemented by this extension.
Registers a new console (artisan) command
Read configuration from Config file
No description
Details
at line 34
register()
Register method called when the extension is first installed.
at line 41
boot()
Boot method, called right before the request route.
at line 49
array
extensionMeta()
Returns information about this extension
at line 60
array
registerComponents()
Registers any front-end components implemented in this extension.
The components must be returned in the following format: ['path/to/class' => ['code' => 'component_code']]
at line 71
array
registerPaymentGateways()
Registers any payment gateway implemented in this extension.
The payment gateway must be returned in the following format: ['path/to/class' => 'alias']
at line 80
array
registerNavigation()
Registers back-end navigation menu items for this extension.
at line 89
array
registerPermissions()
Registers any back-end permissions used by this extension.
at line 98
array
registerSettings()
Registers the back-end setting links used by this extension.
at line 109
void
registerSchedule(string $schedule)
Registers scheduled tasks that are executed on a regular basis.
at line 117
array
registerDashboardWidgets()
Registers any dashboard widgets provided by this extension.
at line 129
array
registerFormWidgets()
Registers any form widgets implemented in this extension.
The widgets must be returned in the following format: ['className1' => 'alias'], ['className2' => 'anotherAlias']
at line 143
array
registerMailTemplates()
Registers any mail templates implemented by this extension.
The templates must be returned in the following format: [ 'igniter.demo::mail.registration' => 'Registration email to customer.', ] The array key will be used as the template code
at line 155
void
registerConsoleCommand(string $key, string $class)
Registers a new console (artisan) command
at line 170
protected array|bool
getConfigFromFile()
Read configuration from Config file
at line 202
protected
getConfigFromComposerJson($configFile)
No description