DeferredServiceProvider class abstract

A provider whose bindings are registered lazily, the first time one of the types in provides is resolved from the container (Laravel's DeferrableProvider). Registration must be synchronous because Container.make is synchronous; boot is not invoked for deferred providers.

Inheritance

Constructors

DeferredServiceProvider()
Providers are usually const.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
provides → List<Type>
The types this provider binds.
no setter
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.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register(Container container) → void
Bind services into the container. Do not resolve other services here.
override
registerDeferred(Container container) → void
Synchronously binds the services listed in provides.
toString() → String
A string representation of this object.
inherited

Operators

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