Page MenuHomeDevCentral

No OneTemporary

diff --git a/app/Providers/ReportServiceProvider.php b/app/Providers/ReportServiceProvider.php
index f16235d..42df71a 100644
--- a/app/Providers/ReportServiceProvider.php
+++ b/app/Providers/ReportServiceProvider.php
@@ -1,40 +1,40 @@
<?php
namespace Nasqueron\Notifications\Providers;
use Illuminate\Contracts\Events\Dispatcher;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Support\ServiceProvider;
use Nasqueron\Notifications\Actions\ActionsReport;
use Nasqueron\Notifications\Events\ReportEvent;
class ReportServiceProvider extends ServiceProvider {
/**
* Registers the application services.
*
* @return void
*/
public function register() {
$this->app->singleton('report', function (Application $app) {
$report = new ActionsReport();
- static::listenToActionsForReport($report, $app['events']);
+ static::listenToActionsForReport($report, $app->make('events'));
return $report;
});
}
/**
* Listen to actions fired by the application to add to the report
*
* @param \Nasqueron\Notifications\Actions\ActionsReport $report The report to add actions to
* @param \Illuminate\Contracts\Events\Dispatcher $events The application events dispatcher
*/
public static function listenToActionsForReport (ActionsReport $report, Dispatcher $events) {
$events->listen(
'Nasqueron\Notifications\Events\ReportEvent',
function (ReportEvent $event) use ($report) {
$report->addAction($event->action);
}
);
}
}

File Metadata

Mime Type
text/x-diff
Expires
Mon, Sep 14, 16:08 (17 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4082753
Default Alt Text
(1 KB)

Event Timeline