Mercurial
comparison benchmark/bun-http-framework-benchmark/dev/adonis/providers/AppProvider.ts @ 183:a8976a008a9d
[BenchMark] Added bun bench mark to test seoboe vs other popular benchmarks.
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Fri, 23 Jan 2026 21:19:08 -0800 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 179:8d17f6e6e290 | 183:a8976a008a9d |
|---|---|
| 1 import type { ApplicationContract } from '@ioc:Adonis/Core/Application' | |
| 2 | |
| 3 export default class AppProvider { | |
| 4 constructor(protected app: ApplicationContract) {} | |
| 5 | |
| 6 public register() { | |
| 7 // Register your own bindings | |
| 8 } | |
| 9 | |
| 10 public async boot() { | |
| 11 // IoC container is ready | |
| 12 } | |
| 13 | |
| 14 public async ready() { | |
| 15 // App is ready | |
| 16 } | |
| 17 | |
| 18 public async shutdown() { | |
| 19 // Cleanup, since app is going down | |
| 20 } | |
| 21 } |