FEATURE #1374: add logging for static pages

This commit is contained in:
Michal Kváček
2016-01-29 01:57:12 +01:00
parent 593506c646
commit ee55715093
16 changed files with 424 additions and 35 deletions
@@ -0,0 +1,40 @@
<?php
namespace Modules\StaticPages\Providers;
use Illuminate\Contracts\Events\Dispatcher as DispatcherContract;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
*
* @var array
*/
protected $listen = [
'Modules\StaticPages\Events\CreateNewStaticPage' => [
'Modules\StaticPages\Listeners\LogCreateNewStaticPage'
],
'Modules\StaticPages\Events\EditStaticPage' => [
'Modules\StaticPages\Listeners\LogEditStaticPage'
],
'Modules\StaticPages\Events\PublishStaticPage' => [
'Modules\StaticPages\Listeners\LogPublishStaticPage'
],
'Modules\StaticPages\Events\DeleteStaticPage' => [
'Modules\StaticPages\Listeners\LogDeleteStaticPage'
],
];
/**
* Register any other events for your application.
*
* @param \Illuminate\Contracts\Events\Dispatcher $events
* @return void
*/
public function boot(DispatcherContract $events)
{
parent::boot($events);
}
}