Symfony Event class deprecated (Drupal 10 error fired)
In a Drupal 10 CiviCRM instance I get this error using the Stripe extension:
Error: Class "Symfony\Component\EventDispatcher\Event" not found in include() (line 16 of .../firewall/Civi/Firewall/Event/FraudEvent.php).
The reason, here:
https://www.drupal.org/node/3159012
I hotfixed it doing:
//class FraudEvent extends \Symfony\Component\EventDispatcher\Event {
class FraudEvent extends \Drupal\Component\EventDispatcher\Event {
but I think it's not a suitable solution to pach here, because the CMS agnosticy of CiviCRM.
Not sure if:
class FraudEvent extends \Symfony\Contracts\EventDispatcher\Event {
could be OK. I think it is OK for Symphony 4 and 5, but not sure.
Edited by calbasi