FEATURE #1374: add logging for static pages
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user