Skip to content

Commit 40a9b80

Browse files
authored
fix(schema): Replace deprecated ContainerAwareEventDispatcher with Symfony event dispatcher interface (#1400)
1 parent ae7decb commit 40a9b80

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Plugin/GraphQL/Schema/AlterableComposableSchema.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Drupal\graphql\Plugin\GraphQL\Schema;
44

5-
use Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher;
65
use Drupal\Core\Cache\CacheBackendInterface;
76
use Drupal\Core\Extension\ModuleHandlerInterface;
87
use Drupal\graphql\Event\AlterSchemaDataEvent;
@@ -11,6 +10,7 @@
1110
use Drupal\graphql\Plugin\SchemaExtensionPluginManager;
1211
use GraphQL\Language\Parser;
1312
use Symfony\Component\DependencyInjection\ContainerInterface;
13+
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
1414

1515
/**
1616
* Allows to alter the graphql files data before parsing.
@@ -28,7 +28,7 @@ class AlterableComposableSchema extends ComposableSchema {
2828
/**
2929
* The event dispatcher service.
3030
*
31-
* @var \Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher
31+
* @var \Symfony\Component\EventDispatcher\EventDispatcherInterface
3232
*/
3333
protected $dispatcher;
3434

@@ -67,7 +67,7 @@ public static function create(ContainerInterface $container, array $configuratio
6767
* The schema extension plugin manager.
6868
* @param array $config
6969
* The service configuration.
70-
* @param \Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher $dispatcher
70+
* @param \Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher
7171
* The event dispatcher.
7272
*
7373
* @codeCoverageIgnore
@@ -80,7 +80,7 @@ public function __construct(
8080
ModuleHandlerInterface $moduleHandler,
8181
SchemaExtensionPluginManager $extensionManager,
8282
array $config,
83-
ContainerAwareEventDispatcher $dispatcher
83+
EventDispatcherInterface $dispatcher,
8484
) {
8585
parent::__construct(
8686
$configuration,

0 commit comments

Comments
 (0)