FEATURE #1451: add logging to all actions in widget management

This commit is contained in:
Michal Kváček
2016-02-15 14:30:00 +01:00
parent b344c928b4
commit c75a6bd364
21 changed files with 276 additions and 203 deletions
+15 -15
View File
@@ -2,31 +2,31 @@
namespace App\Events;
use App\Events\Event;
use App\Models\Widget;
use App\Models\WidgetArea;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
class AssignWidget extends Event
{
use SerializesModels;
/**
* @var Widget
*/
public $widget;
/**
* @var WidgetArea
*/
public $widgetArea;
/**
* Create a new event instance.
*
* @return void
* @param Widget $widget
* @param WidgetArea $widgetArea
*/
public function __construct()
public function __construct(Widget $widget, WidgetArea $widgetArea)
{
//
}
/**
* Get the channels the event should be broadcast on.
*
* @return array
*/
public function broadcastOn()
{
return [];
$this->widget = $widget;
$this->widgetArea = $widgetArea;
}
}
+8 -14
View File
@@ -2,31 +2,25 @@
namespace App\Events;
use App\Events\Event;
use App\Models\Widget;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
class CreateNewWidget extends Event
{
use SerializesModels;
/**
* @var Widget
*/
public $widget;
/**
* Create a new event instance.
*
* @return void
* @param Widget $widget
*/
public function __construct()
public function __construct(Widget $widget)
{
//
}
/**
* Get the channels the event should be broadcast on.
*
* @return array
*/
public function broadcastOn()
{
return [];
$this->widget = $widget;
}
}
+8 -15
View File
@@ -2,31 +2,24 @@
namespace App\Events;
use App\Events\Event;
use App\Models\WidgetArea;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
class CreateNewWidgetArea extends Event
{
use SerializesModels;
/**
* @var WidgetArea
*/
public $widgetArea;
/**
* Create a new event instance.
*
* @return void
* @param WidgetArea $widgetArea
*/
public function __construct()
public function __construct(WidgetArea $widgetArea)
{
//
}
/**
* Get the channels the event should be broadcast on.
*
* @return array
*/
public function broadcastOn()
{
return [];
$this->widgetArea = $widgetArea;
}
}
+8 -14
View File
@@ -2,31 +2,25 @@
namespace App\Events;
use App\Events\Event;
use App\Models\WidgetArea;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
class DeleteWidgetArea extends Event
{
use SerializesModels;
/**
* @var WidgetArea
*/
public $widgetArea;
/**
* Create a new event instance.
*
* @return void
* @param WidgetArea $widgetArea
*/
public function __construct()
public function __construct(WidgetArea $widgetArea)
{
//
}
/**
* Get the channels the event should be broadcast on.
*
* @return array
*/
public function broadcastOn()
{
return [];
$this->widgetArea = $widgetArea;
}
}
+8 -15
View File
@@ -2,31 +2,24 @@
namespace App\Events;
use App\Events\Event;
use App\Models\Widget;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
class EditWidget extends Event
{
use SerializesModels;
/**
* @var Widget
*/
public $widget;
/**
* Create a new event instance.
*
* @return void
* @param Widget $widget
*/
public function __construct()
public function __construct(Widget $widget)
{
//
}
/**
* Get the channels the event should be broadcast on.
*
* @return array
*/
public function broadcastOn()
{
return [];
$this->widget = $widget;
}
}
+8 -3
View File
@@ -3,21 +3,26 @@
namespace App\Events;
use App\Events\Event;
use App\Models\WidgetArea;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
class EditWidgetArea extends Event
{
use SerializesModels;
/**
* @var WidgetArea
*/
public $widgetArea;
/**
* Create a new event instance.
*
* @return void
* @param WidgetArea $widgetArea
*/
public function __construct()
public function __construct(WidgetArea $widgetArea)
{
//
$this->widgetArea = $widgetArea;
}
/**
+15 -15
View File
@@ -2,31 +2,31 @@
namespace App\Events;
use App\Events\Event;
use App\Models\Widget;
use App\Models\WidgetArea;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
class RemoveWidgetFromArea extends Event
{
use SerializesModels;
/**
* @var Widget
*/
public $widget;
/**
* @var WidgetArea
*/
public $widgetArea;
/**
* Create a new event instance.
*
* @return void
* @param Widget $widget
* @param WidgetArea $widgetArea
*/
public function __construct()
public function __construct(Widget $widget, WidgetArea $widgetArea)
{
//
}
/**
* Get the channels the event should be broadcast on.
*
* @return array
*/
public function broadcastOn()
{
return [];
$this->widget = $widget;
$this->widgetArea = $widgetArea;
}
}