2
2
3
3
namespace Drupal \graphql \Plugin \GraphQL \Schema ;
4
4
5
- use Drupal \Component \EventDispatcher \ContainerAwareEventDispatcher ;
6
5
use Drupal \Core \Cache \CacheBackendInterface ;
7
6
use Drupal \Core \Extension \ModuleHandlerInterface ;
8
7
use Drupal \graphql \Event \AlterSchemaDataEvent ;
11
10
use Drupal \graphql \Plugin \SchemaExtensionPluginManager ;
12
11
use GraphQL \Language \Parser ;
13
12
use Symfony \Component \DependencyInjection \ContainerInterface ;
13
+ use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
14
14
15
15
/**
16
16
* Allows to alter the graphql files data before parsing.
@@ -28,7 +28,7 @@ class AlterableComposableSchema extends ComposableSchema {
28
28
/**
29
29
* The event dispatcher service.
30
30
*
31
- * @var \Drupal \Component\EventDispatcher\ContainerAwareEventDispatcher
31
+ * @var \Symfony \Component\EventDispatcher\EventDispatcherInterface
32
32
*/
33
33
protected $ dispatcher ;
34
34
@@ -67,7 +67,7 @@ public static function create(ContainerInterface $container, array $configuratio
67
67
* The schema extension plugin manager.
68
68
* @param array $config
69
69
* The service configuration.
70
- * @param \Drupal \Component\EventDispatcher\ContainerAwareEventDispatcher $dispatcher
70
+ * @param \Symfony \Component\EventDispatcher\EventDispatcherInterface $dispatcher
71
71
* The event dispatcher.
72
72
*
73
73
* @codeCoverageIgnore
@@ -80,7 +80,7 @@ public function __construct(
80
80
ModuleHandlerInterface $ moduleHandler ,
81
81
SchemaExtensionPluginManager $ extensionManager ,
82
82
array $ config ,
83
- ContainerAwareEventDispatcher $ dispatcher
83
+ EventDispatcherInterface $ dispatcher,
84
84
) {
85
85
parent ::__construct (
86
86
$ configuration ,
0 commit comments