Skip to content
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.

Commit

Permalink
Laravel 5.6 compatible
Browse files Browse the repository at this point in the history
Updated Provider boot & regiser
  • Loading branch information
koenbetsens committed Aug 20, 2018
1 parent c5d38e0 commit a66ea0f
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/Cloudoki/FrontQueue/FrontQueueServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ class FrontQueueServiceProvider extends ServiceProvider {
*/
public function boot()
{
$this->publishes (
[
__DIR__.'/../../config/frontqueue.php' => config_path ('frontqueue.php')
], 'config');
}

/**
Expand All @@ -30,13 +34,7 @@ public function boot()
*/
public function register()
{

$this->publishes (
[
__DIR__.'/../../config/frontqueue.php' => config_path ('frontqueue.php')
], 'config');

$this->app['frontqueue'] = $this->app->share(function($app)
$this->app->singleton('frontqueue', function ($app)
{
return env('APP_ENV', 'development') == 'local'?

Expand All @@ -54,5 +52,4 @@ public function provides()
{
return ['frontqueue'];
}

}
}

0 comments on commit a66ea0f

Please sign in to comment.