Consistent handling of Listeners methods (the should be overwritten in the application)
This commit is contained in:
parent
521de13d92
commit
be26c3c0a3
@ -24,6 +24,7 @@ class BlockSuggestionListener implements ShouldQueue
|
|||||||
public function handle(BlockSuggestion $event): void
|
public function handle(BlockSuggestion $event): void
|
||||||
{
|
{
|
||||||
// Do some magic with event data
|
// Do some magic with event data
|
||||||
Log::info(sprintf('%s:Block Suggestion for Callback [%s] User [%s] in [%s]',self::LOGKEY,$event->callback_id,$event->user_id,$event->team_id),['e'=>$event]);
|
Log::info(sprintf('%s:Block Suggestion Callback [%s] User [%s] in [%s]',self::LOGKEY,$event->callback_id,$event->user_id,$event->team_id),['e'=>$event]);
|
||||||
|
Log::notice(sprintf('%s:Ignoring Block Suggestion [%s]',static::LOGKEY,$event->callback_id),['m'=>__METHOD__]);
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -22,11 +22,7 @@ class InteractiveMessageListener implements ShouldQueue
|
|||||||
public function handle(InteractiveMessage $event): void
|
public function handle(InteractiveMessage $event): void
|
||||||
{
|
{
|
||||||
// Do some magic with event data
|
// Do some magic with event data
|
||||||
Log::info(sprintf('%s:Interactive Message for Callback [%s] User [%s] in [%s]',self::LOGKEY,$event->callback_id,$event->user_id,$event->team_id),['m'=>__METHOD__]);
|
Log::info(sprintf('%s:Interactive Message Callback [%s] User [%s] in [%s]',self::LOGKEY,$event->callback_id,$event->user_id,$event->team_id),['m'=>__METHOD__]);
|
||||||
|
Log::notice(sprintf('%s:Ignoring Interactive Message [%s]',static::LOGKEY,$event->callback_id),['m'=>__METHOD__]);
|
||||||
switch ($event->callback_id) {
|
|
||||||
default:
|
|
||||||
Log::notice(sprintf('%s:Unhandled CALLBACK [%s]',self::LOGKEY,$event->callback_id),['m'=>__METHOD__]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -23,7 +23,6 @@ class ReactionAddedListener implements ShouldQueue
|
|||||||
{
|
{
|
||||||
// Do some magic with event data
|
// Do some magic with event data
|
||||||
Log::info(sprintf('%s:Reaction [%s] added to message in [%s]',self::LOGKEY,$event->reaction,$event->team_id),['m'=>__METHOD__]);
|
Log::info(sprintf('%s:Reaction [%s] added to message in [%s]',self::LOGKEY,$event->reaction,$event->team_id),['m'=>__METHOD__]);
|
||||||
|
Log::notice(sprintf('%s:Ignoring Reaction Add [%s] on [%s]',static::LOGKEY,$event->reaction,$event->ts),['m'=>__METHOD__]);
|
||||||
Log::debug(sprintf('%s:Ignoring Reaction Add [%s] on [%s]',static::LOGKEY,$event->reaction,$event->ts),['m'=>__METHOD__]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -43,10 +43,6 @@ class ShortcutListener //implements ShouldQueue
|
|||||||
|
|
||||||
// Do some magic with event data
|
// Do some magic with event data
|
||||||
Log::info(sprintf('%s:Shortcut [%s] triggered for: [%s]',self::LOGKEY,$event->callback_id,$event->team_id),['m'=>__METHOD__]);
|
Log::info(sprintf('%s:Shortcut [%s] triggered for: [%s]',self::LOGKEY,$event->callback_id,$event->team_id),['m'=>__METHOD__]);
|
||||||
|
Log::notice(sprintf('%s:Ignoring Shortcut [%s] in team [%s]',static::LOGKEY,$event->callback_id,$event->team_id),['m'=>__METHOD__]);
|
||||||
switch ($event->callback_id) {
|
|
||||||
default:
|
|
||||||
Log::notice(sprintf('%s:Unhandled CALLBACK [%s]',self::LOGKEY,$event->callback_id),['m'=>__METHOD__]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -22,11 +22,7 @@ class ViewClosedListener implements ShouldQueue
|
|||||||
public function handle(ViewClosed $event): void
|
public function handle(ViewClosed $event): void
|
||||||
{
|
{
|
||||||
// Do some magic with event data
|
// Do some magic with event data
|
||||||
Log::info(sprintf('%s:Block Action for Callback [%s] User [%s] in [%s]',self::LOGKEY,$event->callback_id,$event->user_id,$event->team_id),['m'=>__METHOD__]);
|
Log::info(sprintf('%s:View Closed Callback [%s] User [%s] in [%s]',self::LOGKEY,$event->callback_id,$event->user_id,$event->team_id),['m'=>__METHOD__]);
|
||||||
|
Log::notice(sprintf('%s:Ignoring View Closed [%s]',static::LOGKEY,$event->callback_id),['m'=>__METHOD__]);
|
||||||
switch ($event->callback_id) {
|
|
||||||
default:
|
|
||||||
Log::notice(sprintf('%s:Unhandled CALLBACK [%s]',self::LOGKEY,$event->callback_id),['m'=>__METHOD__]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -22,11 +22,7 @@ class ViewSubmissionListener implements ShouldQueue
|
|||||||
public function handle(ViewSubmission $event): void
|
public function handle(ViewSubmission $event): void
|
||||||
{
|
{
|
||||||
// Do some magic with event data
|
// Do some magic with event data
|
||||||
Log::info(sprintf('%s:View Submission for Callback [%s] User [%s] in [%s]',self::LOGKEY,$event->callback_id,$event->user_id,$event->team_id),['m'=>__METHOD__]);
|
Log::info(sprintf('%s:View Submission Callback [%s] User [%s] in [%s]',self::LOGKEY,$event->callback_id,$event->user_id,$event->team_id),['m'=>__METHOD__]);
|
||||||
|
Log::notice(sprintf('%s:Ignoring View Closed [%s]',static::LOGKEY,$event->callback_id),['m'=>__METHOD__]);
|
||||||
switch ($event->callback_id) {
|
|
||||||
default:
|
|
||||||
Log::notice(sprintf('%s:Unhandled CALLBACK [%s]',self::LOGKEY,$event->callback_id),['m'=>__METHOD__]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user