freescout/freescout-dist/app/Providers/EventServiceProvider.php

111 lines
2.8 KiB
PHP

<?php
namespace App\Providers;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Event;
class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
*
* @var array
*/
protected $listen = [
'Illuminate\Mail\Events\MessageSending' => [
'App\Listeners\ProcessSwiftMessage',
],
'Illuminate\Mail\Events\MessageSent' => [
'App\Listeners\RestartSwiftMailer',
],
'Illuminate\Auth\Events\Registered' => [
'App\Listeners\LogRegisteredUser',
],
'Illuminate\Auth\Events\Login' => [
'App\Listeners\RememberUserLocale',
'App\Listeners\LogSuccessfulLogin',
'App\Listeners\ActivateUser',
],
'Illuminate\Auth\Events\Failed' => [
'App\Listeners\LogFailedLogin',
],
'Illuminate\Auth\Events\Logout' => [
'App\Listeners\LogSuccessfulLogout',
],
'Illuminate\Auth\Events\Lockout' => [
'App\Listeners\LogLockout',
],
'Illuminate\Auth\Events\PasswordReset' => [
'App\Listeners\LogPasswordReset',
'App\Listeners\SendPasswordChanged',
],
'App\Events\UserDeleted' => [
'App\Listeners\LogUserDeletion',
],
'App\Events\ConversationStatusChanged' => [
'App\Listeners\UpdateMailboxCounters',
],
'App\Events\ConversationUserChanged' => [
'App\Listeners\UpdateMailboxCounters',
'App\Listeners\SendNotificationToUsers',
],
'App\Events\UserCreatedConversationDraft' => [
],
'App\Events\UserCreatedThreadDraft' => [
],
'App\Events\UserReplied' => [
'App\Listeners\SendReplyToCustomer',
'App\Listeners\SendNotificationToUsers',
'App\Listeners\RefreshConversations',
],
'App\Events\CustomerReplied' => [
'App\Listeners\SendNotificationToUsers',
],
'App\Events\UserCreatedConversation' => [
'App\Listeners\SendReplyToCustomer',
'App\Listeners\SendNotificationToUsers',
'App\Listeners\RefreshConversations',
],
'App\Events\CustomerCreatedConversation' => [
'App\Listeners\SendAutoReply',
'App\Listeners\SendNotificationToUsers',
],
'App\Events\UserAddedNote' => [
'App\Listeners\SendNotificationToUsers',
'App\Listeners\RefreshConversations',
],
];
/**
* Register any events for your application.
*
* @return void
*/
public function boot()
{
parent::boot();
//
}
}