22
33namespace Drupal \graphql \Plugin \GraphQL \Schema ;
44
5- use Drupal \Component \EventDispatcher \ContainerAwareEventDispatcher ;
65use Drupal \Core \Cache \CacheBackendInterface ;
76use Drupal \Core \Extension \ModuleHandlerInterface ;
87use Drupal \graphql \Event \AlterSchemaDataEvent ;
1110use Drupal \graphql \Plugin \SchemaExtensionPluginManager ;
1211use GraphQL \Language \Parser ;
1312use 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