* fix `helpers.php` * fix `.eslintrc.cjs` * spreadsheet manager * fetch providers. set `oauth_id` for integrations * create spreadsheet on integration create event * connect OAuth accounts * display actions. connect account if missing * cleanup * handle form field change * map integration data object to `SpreadsheetData` * validate request * wip * redirect to integrations page * fix refresh token * add helper text * add extra integration info * refactor * refresh google token * fix validation * add tests * Fix linting issue * Update composer lock file --------- Co-authored-by: Julien Nahum <julien@nahum.net>
57 lines
1.5 KiB
PHP
57 lines
1.5 KiB
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Events\Forms\FormSubmitted;
|
|
use App\Events\Models\FormCreated;
|
|
use App\Events\Models\FormIntegrationCreated;
|
|
use App\Events\Models\FormIntegrationsEventCreated;
|
|
use App\Events\SubscriptionCreated;
|
|
use App\Listeners\Forms\FormCreationConfirmation;
|
|
use App\Listeners\Forms\FormIntegrationCreatedHandler;
|
|
use App\Listeners\Forms\FormIntegrationsEventListener;
|
|
use App\Listeners\Forms\NotifyFormSubmission;
|
|
use App\Listeners\HandleSubscriptionCreated;
|
|
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
|
|
*/
|
|
protected $listen = [
|
|
Registered::class => [
|
|
SendEmailVerificationNotification::class,
|
|
],
|
|
FormCreated::class => [
|
|
FormCreationConfirmation::class,
|
|
],
|
|
FormSubmitted::class => [
|
|
NotifyFormSubmission::class
|
|
],
|
|
FormIntegrationCreated::class => [
|
|
FormIntegrationCreatedHandler::class,
|
|
],
|
|
FormIntegrationsEventCreated::class => [
|
|
FormIntegrationsEventListener::class,
|
|
],
|
|
SubscriptionCreated::class => [
|
|
HandleSubscriptionCreated::class
|
|
],
|
|
];
|
|
|
|
/**
|
|
* Register any events for your application.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
//
|
|
}
|
|
}
|