- Issue created by @rogerpfaff
- πͺπΈSpain leandro713 πͺπΈ Madrid π€
yes, just change
use Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher;
for
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
and change the constructor like:
public function __construct( array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config, CacheBackendInterface $cache, TimeInterface $time, EventDispatcherInterface $event_dispatcher, // <-- here the magic ClientInterface $http_client, Token $token, LoggerInterface $logger ) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->config = $config; $this->cache = $cache; $this->time = $time; $this->eventDispatcher = $event_dispatcher; $this->httpClient = $http_client; $this->token = $token; $this->logger = $logger; }
and done :-D
- Status changed to Needs review
18 days ago 11:00pm 21 April 2025 - πΊπΈUnited States sikofitt
It looks like this was fixed here https://git.drupalcode.org/issue/views_json_source-3503343/-/tree/d8d54b7d51154fd7f1cf52273c34b5eb9c00e300
- π©πͺGermany rogerpfaff Munich
Seems like a duplicate. Unfortunately the fix is not in a stable version and only in dev. Closing as dup.