ServiceProvider
abstract class ServiceProvider (View source)
Properties
protected Application | $app | The application instance. |
|
protected bool | $defer | Indicates if loading of the provider is deferred. |
Methods
Bootstrap the application events.
Register the service provider.
Register the package's component namespaces.
Guess the package path for the provider.
Determine the namespace for a package.
Register the package's custom Artisan commands.
Get the application package view path.
Get the services provided by the provider.
Get the events that trigger this service provider to register.
Determine if the provider is deferred.
Details
void
__construct(Application $app)
Create a new service provider instance.
void
boot()
Bootstrap the application events.
abstract void
register()
Register the service provider.
void
package(string $package, string $namespace = null, string $path = null)
Register the package's component namespaces.
string
guessPackagePath()
Guess the package path for the provider.
protected string
getPackageNamespace(string $package, string $namespace)
Determine the namespace for a package.
void
commands(array $commands)
Register the package's custom Artisan commands.
protected string
getAppViewPath(string $package)
Get the application package view path.
array
provides()
Get the services provided by the provider.
array
when()
Get the events that trigger this service provider to register.
bool
isDeferred()
Determine if the provider is deferred.