Skip to content
Snippets Groups Projects
Commit 28902d0e authored by Jonathan Smith's avatar Jonathan Smith
Browse files

Issue #3437739 Change ContainerAwareEventDispatcher to EventDispatcherInterface

parent b7674877
No related branches found
No related tags found
1 merge request!168Issue #3437739 Change ContainerAwareEventDispatcher to EventDispatcherInterface
Pipeline #252721 passed
......@@ -3,7 +3,6 @@
namespace Drupal\scheduler;
use Drupal\Component\Datetime\TimeInterface;
use Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher;
use Drupal\Component\EventDispatcher\Event;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Datetime\DateFormatterInterface;
......@@ -16,6 +15,7 @@ use Drupal\node\NodeInterface;
use Drupal\scheduler\Exception\SchedulerMissingDateException;
use Drupal\scheduler\Exception\SchedulerNodeTypeNotEnabledException;
use Psr\Log\LoggerInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
/**
* Defines a scheduler manager.
......@@ -62,7 +62,7 @@ class SchedulerManager {
/**
* The event dispatcher.
*
* @var \Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher
* @var \Symfony\Component\EventDispatcher\EventDispatcherInterface
*/
protected $eventDispatcher;
......@@ -82,7 +82,7 @@ class SchedulerManager {
ModuleHandlerInterface $moduleHandler,
EntityTypeManagerInterface $entityTypeManager,
ConfigFactoryInterface $configFactory,
ContainerAwareEventDispatcher $eventDispatcher,
EventDispatcherInterface $eventDispatcher,
// Trailing comma is incompatible with PHPUnit 9.6.19 in Drupal 9.5 PHP 7.4.
// phpcs:ignore Drupal.Functions.MultiLineFunctionDeclaration.MissingTrailingComma
TimeInterface $time
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment