composer require ldc/web-status-checker-laravel remove Old static status checker Fix ImportMedia WIP commands OK many fixes Fix and try to optimize folder component Fix front icons + actions based on icons Favico front fix alert Fix Media upload on depot fix folder component buttons Full front fix with perf due tu vuejs Download medias Navigate within medias superfix Move media + loader isLocked boolean and remove media fix Folder scroll fix arcadia link color red Fix panier show external Tons of fixes back as front REwrited all
62 lines
1.6 KiB
PHP
62 lines
1.6 KiB
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Events\MediaChangedLabel;
|
|
use App\Events\MediaCreated;
|
|
use App\Events\MediaUpdated;
|
|
use App\Events\MediaDestroyed;
|
|
use App\Events\MediaMoved;
|
|
use App\Events\MediaSearched;
|
|
use App\Listeners\CleanUserOldSearches;
|
|
use App\Listeners\SyncWithArcadia;
|
|
use App\Listeners\HistorizeMediaEvent;
|
|
use App\Listeners\SaveUserSearch;
|
|
use Illuminate\Auth\Events\Registered;
|
|
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
|
|
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
|
|
|
class EventServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* The event listener mappings for the application.
|
|
*
|
|
* @var array<class-string, array<int, class-string>>
|
|
*/
|
|
protected $listen = [
|
|
Registered::class => [
|
|
SendEmailVerificationNotification::class,
|
|
],
|
|
MediaSearched::class => [
|
|
SaveUserSearch::class,
|
|
CleanUserOldSearches::class
|
|
],
|
|
MediaChangedLabel::class => [
|
|
HistorizeMediaEvent::class
|
|
],
|
|
MediaCreated::class => [
|
|
HistorizeMediaEvent::class
|
|
],
|
|
MediaMoved::class => [
|
|
HistorizeMediaEvent::class
|
|
],
|
|
MediaUpdated::class => [
|
|
HistorizeMediaEvent::class,
|
|
SyncWithArcadia::class
|
|
],
|
|
MediaDestroyed::class => [
|
|
HistorizeMediaEvent::class,
|
|
SyncWithArcadia::class
|
|
]
|
|
];
|
|
|
|
/**
|
|
* Determine if events and listeners should be automatically discovered.
|
|
*
|
|
* @return boolean
|
|
*/
|
|
public function shouldDiscoverEvents()
|
|
{
|
|
return false;
|
|
}
|
|
}
|