Repo for the search and displace core module including the interface to select files and search and displace operations to run on them. https://searchanddisplace.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.1 KiB

4 years ago
4 years ago
4 years ago
4 years ago
  1. <?php
  2. namespace App\Providers;
  3. use App\Events\IngestDocumentReceived;
  4. use App\Events\SDAppliedOnMarkdownDocument;
  5. use App\Events\SDAppliedOnOriginalDocument;
  6. use App\Events\SDFailedToApply;
  7. use App\Listeners\AnalyzeOperationPerformance;
  8. use App\Listeners\RunSearchAndDisplaceOnDocument;
  9. use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
  10. class EventServiceProvider extends ServiceProvider
  11. {
  12. /**
  13. * The event listener mappings for the application.
  14. *
  15. * @var array
  16. */
  17. protected $listen = [
  18. IngestDocumentReceived::class => [
  19. RunSearchAndDisplaceOnDocument::class,
  20. ],
  21. SDAppliedOnOriginalDocument::class => [
  22. AnalyzeOperationPerformance::class,
  23. ],
  24. SDAppliedOnMarkdownDocument::class => [
  25. AnalyzeOperationPerformance::class,
  26. ],
  27. SDFailedToApply::class => [
  28. AnalyzeOperationPerformance::class,
  29. ],
  30. ];
  31. /**
  32. * Register any events for your application.
  33. *
  34. * @return void
  35. */
  36. public function boot()
  37. {
  38. parent::boot();
  39. //
  40. }
  41. }