UNPKG

@codenameryuu/adonis-datatable

Version:
33 lines (32 loc) 733 B
import { Datatables } from '../src/datatables.js'; export default class DatatablesProvider { app; constructor(app) { this.app = app; } /** * Register bindings to the container */ register() { this.app.container.singleton('datatables', () => { const engines = this.app.config.get(`datatables.engines`); return new Datatables(engines); }); } /** * The container bindings have booted */ async boot() { } /** * The application has been booted */ async start() { } /** * The process has been started */ async ready() { } /** * Preparing to shut down the app */ async shutdown() { } }