summaryrefslogtreecommitdiff
path: root/src/ScormPlayerServiceProvider.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/ScormPlayerServiceProvider.php')
-rw-r--r--src/ScormPlayerServiceProvider.php27
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');
}
}