EscolaLMS/Courses-Import-Export

View on GitHub
src/EscolaLmsCoursesImportExportServiceProvider.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

namespace EscolaLms\CoursesImportExport;

use EscolaLms\CoursesImportExport\Services\CloneCourseService;
use EscolaLms\CoursesImportExport\Services\Contracts\CloneCourseServiceContract;
use EscolaLms\CoursesImportExport\Services\Contracts\ExportImportServiceContract;
use EscolaLms\CoursesImportExport\Services\ExportImportService;
use Illuminate\Support\ServiceProvider;
use ZanySoft\Zip\ZipServiceProvider;

class EscolaLmsCoursesImportExportServiceProvider extends ServiceProvider
{
    public $singletons = [
        ExportImportServiceContract::class => ExportImportService::class,
        CloneCourseServiceContract::class => CloneCourseService::class,
    ];

    public function boot()
    {
        $this->loadRoutesFrom(__DIR__.'/routes.php');
        $this->loadTranslationsFrom(__DIR__ . '/../resources/lang', 'course-import-export');
    }

    public function register()
    {
        $this->app->register(AuthServiceProvider::class);
        $this->app->register(ZipServiceProvider::class);
    }
}