public protocol Provider
Providers allow third-party services to be easily integrated into a service
Simply register the
Provider like any other service and it will take care of setting up any necessary
configurations on itself and the container.
Providers have two phases:
There are two parts of the boot phase:
didBoot(_:). Both of these methods supply
Provider with access to the initialized
Container and allow asynchronous work to be done.
didBoot(_:) method is guaranteed to be called after all providers have run
willBoot(_:). Most providers should
try to do their work in the
didBoot(_:) method, resorting to the
willBoot(_:) method if they want to pre-empt work
done by other providers.