30 lines
745 B
PHP
30 lines
745 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Http\Responses\RegisterResponse;
|
|
use App\Listeners\ScheduleDripEmailsListener;
|
|
use Illuminate\Auth\Events\Registered;
|
|
use Illuminate\Support\Facades\Event;
|
|
use Illuminate\Support\ServiceProvider;
|
|
use Laravel\Fortify\Contracts\RegisterResponse as RegisterResponseContract;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
$this->app->singleton(RegisterResponseContract::class, RegisterResponse::class);
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
Event::listen(Registered::class, ScheduleDripEmailsListener::class);
|
|
}
|
|
}
|