Stone.js API
    Preparing search index...

    Interface representing a service provider within the system.

    This interface provides lifecycle hooks for managing the registration, initialization, and termination phases of a provider. Implementations of this interface are expected to define these lifecycle methods as needed.

    interface IServiceProvider {
        boot?: () => Promiseable<void>;
        mustSkip?: () => Promiseable<boolean>;
        register?: () => Promiseable<void>;
    }

    Implemented by

    Index
    boot?: () => Promiseable<void>

    Boots the provider after registration. This method is used to initialize services that need to be started.

    mustSkip?: () => Promiseable<boolean>

    Skip this provider.

    register?: () => Promiseable<void>

    Registers the provider into the system. Typically used for adding services or bindings to the container.