<?php

namespace Webkul\CartRule\Providers;

use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;

class EventServiceProvider extends ServiceProvider
{
    /**
     * The event handler mappings for the application.
     *
     * @var array
     */
    protected $listen = [
        'checkout.order.save.after' => [
            'Webkul\CartRule\Listeners\Order@manageCartRule',
        ],

        'checkout.cart.collect.totals.before' => [
            'Webkul\CartRule\Listeners\Cart@applyCartRules',
        ],
    ];
}
