Instance Method (Default implementation)vapor 4.106.2Vapor
willBoot(_:)
LifecycleHandler.swift:59func willBoot(_ application: Application) throws
Implements
func willBoot(Application
) throws Called when the application is about to boot up
func willBoot(_ application: Application) throws
s5Vapor16LifecycleHandlerPAAE8willBootyyAA11ApplicationCKF
What are these?
FNV24: [8ANU6]
func willBoot(Application) throws
Called when the application is about to boot up
import Vapor
Vapor is a framework for building server applications, APIs and websites in Swift. It provides a safe, performant and scalable foundation for building large complex backends.
protocol LifecycleHandler : Sendable
Provides a way to hook into lifecycle events of a Vapor application. You can register your handlers with the Application
to be notified when the application is about to start up, has started up and is about to shutdown
final class Application
Core type representing a Vapor application.
func willBoot(_ application: Application) throws
Called when the application is about to boot up
func didBoot(_ application: Application) throws
func didBootAsync(_ application: Application) async throws
func shutdown(_ application: Application)
func shutdownAsync(_ application: Application) async
func willBootAsync(_ application: Application) async throws