Unverified Commit 3b8e4326 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3055198 by catch, longwave, mikelutz, alexpott: [Symfony 5]...

Issue #3055198 by catch, longwave, mikelutz, alexpott: [Symfony 5] Symfony/Component/EventDispatcher/Event is deprecated in Symfony 4.3 use Symfony/Contracts/EventDispatcher/Event instead
parent 702e8246
Loading
Loading
Loading
Loading
+1 −1
Changes for core/core.api.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -2509,7 +2509,7 @@ function hook_validation_constraint_alter(array &$definitions) {
 * you should normally define as a constant in a separate static class (see
 * \Symfony\Component\HttpKernel\KernelEvents and
 * \Drupal\Core\Config\ConfigEvents for examples). The second argument is a
 * \Symfony\Component\EventDispatcher\Event object; normally you will need to
 * \Drupal\Component\EventDispatcher\Event object; normally you will need to
 * extend this class, so that your event class can provide data to the event
 * subscribers.
 *
+15 −0
Changes for core/lib/Drupal/Component/EventDispatcher/Event.php: 15 added lines, 0 removed lines.
Original line number Diff line number Diff line
<?php

namespace Drupal\Component\EventDispatcher;

use Symfony\Component\EventDispatcher\Event as SymfonyEvent;

/**
 * Provides a forward-compatibility layer for the Symfony 5 event class.
 *
 * Symfony 5 relies on the Symfony\Contracts\EventDispatcher\Event class.
 * In order to prepare for updates, code that wishes to extend Symfony's Event
 * class should extend this intermediary class, which will handle switching
 * from Symfony\Component to Symfony\Contracts without a further change.
 */
class Event extends SymfonyEvent {}
+1 −1
Changes for core/lib/Drupal/Core/Config/ConfigCollectionInfo.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@

namespace Drupal\Core\Config;

use Symfony\Component\EventDispatcher\Event;
use Drupal\Component\EventDispatcher\Event;

/**
 * Gets information on all the possible configuration collections.
+1 −1
Changes for core/lib/Drupal/Core/Config/ConfigCrudEvent.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@

namespace Drupal\Core\Config;

use Symfony\Component\EventDispatcher\Event;
use Drupal\Component\EventDispatcher\Event;

/**
 * Wraps a configuration event for event listeners.
+1 −1
Changes for core/lib/Drupal/Core/Config/ConfigImporterEvent.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@

namespace Drupal\Core\Config;

use Symfony\Component\EventDispatcher\Event;
use Drupal\Component\EventDispatcher\Event;

class ConfigImporterEvent extends Event {
  /**
Loading