UNPKG

adonis-drive-r2

Version:
25 lines (24 loc) 693 B
"use strict"; /* * adonis-drive-r2 * * (c) Ndianabasi Udonkang <ndianabasi@gotedo.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ Object.defineProperty(exports, "__esModule", { value: true }); const R2_1 = require("../Drivers/R2"); class R2Provider { constructor(app) { this.app = app; } boot() { this.app.container.withBindings(['Adonis/Core/Drive', 'Adonis/Core/Logger'], (Drive, Logger) => { Drive.extend('r2', (_, __, config) => { return new R2_1.R2Driver(config, Logger); }); }); } } exports.default = R2Provider;