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.

44 lines
1017 B

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