Ensure Drupal 10 compatibility by updating deprecated event dispatcher usage
- Replaces deprecated Symfony\Component\EventDispatcher\Event with Drupal\Component\EventDispatcher\Event
- Updates event listener type hints to avoid deprecated class
- Adjusts dispatch() call argument order for Symfony 4+ compatibility
- Adds Symfony\Contracts\EventDispatcher\EventDispatcherInterface type hints This commit prepares the module for full compatibility with Drupal 10 and Symfony 5.