ldc-boutique-cnc/app/Providers/EventServiceProvider.php
Jérémy Munsch f371cd118d
Step 2
- Order can be cancelled even if payed
- Moved specific TS definitions on bo directory
- Minicrud fix prepended slash
- Vue component Order Prepare
- Validate Basket Item format on server side (ToolboxHelper)
- Fixed transaction without webhooks
- Added Order preparation steps
- Stripe Order refund
- Add preventLazyLoad to AppServiceProvider (partial strict mode)
2023-03-15 17:51:01 +01:00

65 lines
1.7 KiB
PHP

<?php
namespace App\Providers;
use App\Events\OrderIsCreated;
use App\Events\OrderIsPaid;
use App\Events\OrderIsRefunded;
use App\Events\OrderIsValidated;
use App\Listeners\LogVerifiedUser;
use App\Listeners\Order\OrderCreatedListener;
use App\Listeners\Order\OrderIsRefundedListener;
use App\Listeners\Order\OrderPayedListener;
use App\Listeners\Order\OrderValidatedListener;
use App\Listeners\PasswordHasReset;
use App\Listeners\PaymentIPN\StripeEventListener;
use Illuminate\Auth\Events\PasswordReset;
use Illuminate\Auth\Events\Registered;
use Illuminate\Auth\Events\Verified;
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
use Laravel\Cashier\Events\WebhookReceived;
class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
*
* @var array
*/
protected $listen = [
Registered::class => [
SendEmailVerificationNotification::class,
],
Verified::class => [
LogVerifiedUser::class
],
PasswordReset::class => [
PasswordHasReset::class
],
OrderIsCreated::class => [
OrderCreatedListener::class
],
OrderIsPaid::class => [
OrderPayedListener::class
],
OrderIsValidated::class => [
OrderValidatedListener::class
],
OrderIsRefunded::class => [
OrderIsRefundedListener::class
],
WebhookReceived::class => [
StripeEventListener::class
],
];
/**
* Register any events for your application.
*
* @return void
*/
public function boot()
{
}
}