Skip to content

Commit

Permalink
Using ::class notation
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Sep 10, 2017
1 parent 4380909 commit 7decfea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/Dashboard/Providers/WidgetServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ class WidgetServiceProvider extends ServiceProvider
{
public function register()
{
$this->app->singleton('Modules\Dashboard\Composers\WidgetViewComposer', function () {
$this->app->singleton(WidgetViewComposer::class, function () {
return new WidgetViewComposer();
});

$this->app['view']->composer('dashboard::admin.dashboard', 'Modules\Dashboard\Composers\WidgetViewComposer');
$this->app['view']->composer('dashboard::admin.dashboard', WidgetViewComposer::class);
}
}

0 comments on commit 7decfea

Please sign in to comment.