Skip to content
Snippets Groups Projects

#3524812: ContainerAwareEventDispatcher is deprecated

1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
@@ -16,7 +16,7 @@ use Drupal\search_api\SearchApiException;
use Drush\Log\SuccessInterface;
use Psr\Log\LoggerAwareInterface;
use Psr\Log\LoggerAwareTrait;
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
// phpcs:disable DrupalPractice.General.ExceptionT.ExceptionT
@@ -58,7 +58,7 @@ class CommandHelper implements LoggerAwareInterface {
/**
* The event dispatcher.
*
* @var \Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher|null
* @var \Symfony\Component\EventDispatcher\EventDispatcherInterface|null
*/
protected $eventDispatcher;
@@ -76,7 +76,7 @@ class CommandHelper implements LoggerAwareInterface {
* The entity type manager.
* @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
* The module handler.
* @param \Symfony\Contracts\EventDispatcher\EventDispatcherInterface $event_dispatcher
* @param \Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher
* The event dispatcher.
* @param string|callable $translation_function
* (optional) A callable for translating strings.
Loading