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
-
- Object
- ServiceProvider
- DeferredServiceProvider
Constructors
- DeferredServiceProvider()
-
Providers are usually const.
const
Properties
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