Skip to content

Commit

Permalink
fix(schema): Replace deprecated ContainerAwareEventDispatcher with Sy…
Browse files Browse the repository at this point in the history
…mfony event dispatcher interface (#1400)
  • Loading branch information
almunnings authored May 15, 2024
1 parent ae7decb commit 40a9b80
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Plugin/GraphQL/Schema/AlterableComposableSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Drupal\graphql\Plugin\GraphQL\Schema;

use Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\graphql\Event\AlterSchemaDataEvent;
Expand All @@ -11,6 +10,7 @@
use Drupal\graphql\Plugin\SchemaExtensionPluginManager;
use GraphQL\Language\Parser;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;

/**
* Allows to alter the graphql files data before parsing.
Expand All @@ -28,7 +28,7 @@ class AlterableComposableSchema extends ComposableSchema {
/**
* The event dispatcher service.
*
* @var \Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher
* @var \Symfony\Component\EventDispatcher\EventDispatcherInterface
*/
protected $dispatcher;

Expand Down Expand Up @@ -67,7 +67,7 @@ public static function create(ContainerInterface $container, array $configuratio
* The schema extension plugin manager.
* @param array $config
* The service configuration.
* @param \Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher $dispatcher
* @param \Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher
* The event dispatcher.
*
* @codeCoverageIgnore
Expand All @@ -80,7 +80,7 @@ public function __construct(
ModuleHandlerInterface $moduleHandler,
SchemaExtensionPluginManager $extensionManager,
array $config,
ContainerAwareEventDispatcher $dispatcher
EventDispatcherInterface $dispatcher,
) {
parent::__construct(
$configuration,
Expand Down

0 comments on commit 40a9b80

Please sign in to comment.