Const
Collection of hooks that can be used to listen for various events during the application lifecycle. These hooks allow you to execute custom logic at specific points in the development server, build process, and testing.
const { hooks } = await import('@adonisjs/application')hooks.init((app) => { console.log('Application initialized')})hooks.devServerStarted((server) => { console.log('Dev server started on port', server.port)}) Copy
const { hooks } = await import('@adonisjs/application')hooks.init((app) => { console.log('Application initialized')})hooks.devServerStarted((server) => { console.log('Dev server started on port', server.port)})
Collection of hooks that can be used to listen for various events during the application lifecycle. These hooks allow you to execute custom logic at specific points in the development server, build process, and testing.