ServiceProvider class abstract

Registers and boots services, mirroring Laravel's two-phase providers.

All register methods run before any boot method. Both may be asynchronous. Providers receive the application's Container; the Application, ConfigRepository, Env, Router and other core services are already bound when register is called.

Implementers

Constructors

ServiceProvider()
Providers are usually const.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

boot(Container container) → FutureOr<void>
Called after every provider has registered; safe to resolve services.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register(Container container) → FutureOr<void>
Bind services into the container. Do not resolve other services here.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited