import { ApplicationContract } from '@ioc:Adonis/Core/Application' ; export default class AttachmentLiteProvider { constructor ( protected application ) { } public register ( ) { this . application . container . bind ( 'Adonis/Addons/AttachmentLite' , ( ) => { const { Attachment } = require ( '../src/Attachment' ) ; const { attachment } = require ( '../src/Attachment/decorator' ) ; return { Attachment : Attachment , attachment : attachment , } ; } ) ; } public boot ( ) { this . application . container . withBindings ( [ 'Adonis/Addons/AttachmentLite' , 'Adonis/Core/Drive' ] , ( AttachmentLite , Drive ) => { AttachmentLite . Attachment . setDrive ( Drive ) ; } ) ; } }