public protocol VaporProvider : Provider
A normal service
Provider extended with additional life-cycle hooks for Vapor-specific containers.
Called before the application runs commands.
func willRun(_ worker: Container) throws -> Future<Void>
Called after the application has finished running.
NoteThis may never happen if the server runs infinitely.
func didRun(_ worker: Container) throws -> Future<Void>