diff options
author | Sam Light <samlight1994@gmail.com> | 2022-09-05 09:45:04 +0100 |
---|---|---|
committer | Sam Light <samlight1994@gmail.com> | 2022-09-05 09:45:04 +0100 |
commit | 08908a314cb75dbcf51e6221c2f2c49d3a55d17f (patch) | |
tree | 994b65cc5a3eb70c720cece5e3c4536aff72c7c1 /src/ScormPlayerServiceProvider.php | |
parent | cb292e5674afde1ac99de9c9d3d2dbac5f8c0aee (diff) |
Implemented majority of the player functionality
Diffstat (limited to 'src/ScormPlayerServiceProvider.php')
-rw-r--r-- | src/ScormPlayerServiceProvider.php | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/src/ScormPlayerServiceProvider.php b/src/ScormPlayerServiceProvider.php index dc269be..c1f3369 100644 --- a/src/ScormPlayerServiceProvider.php +++ b/src/ScormPlayerServiceProvider.php @@ -2,23 +2,40 @@ namespace Lightscale\ScormPlayer; -use Illuminate\Support\ServiceProvider; +use Peopleaps\Scorm\ScormServiceProvider; -class ScormPlayerServiceProvider extends ServiceProvider +class ScormPlayerServiceProvider extends ScormServiceProvider { public function register() { - \Log::debug('player regist'); + parent::register(); + + $this->mergeConfigFrom( + __DIR__ . '/../config/scorm-player.php', 'scorm' + ); + } + + protected function offerPublishing() + { + parent::offerPublishing(); + + $this->publishes([ + __DIR__ . '/../database/migrations/scorm_player_improvements.php.stub' => + $this->getMigrationFileName('scorm_player_improvements.php'), + ], 'migrations'); + } public function boot() { + parent::boot(); + // Load routes - //$this->loadRoutesFrom(__DIR__.'/../routes/web.php'); + $this->loadRoutesFrom(__DIR__ . '/../routes/web.php'); // Load views - //$this->loadViewsFrom(__DIR__.'/../resources/views', 'courier'); + $this->loadViewsFrom(__DIR__.'/../resources/views', 'scorm-player'); } } |