Commit b8ed99fb authored by Marcus McDowell's avatar Marcus McDowell Committed by Katsuyuki Omuro
Browse files

Issue #3555387: TypeError when installing Drupal Canvas module

parent 29486345
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ namespace Drupal\fastly;

use Drupal\Component\Utility\UrlHelper;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Messenger\Messenger;
use Drupal\Core\Messenger\MessengerInterface;
use Drupal\Core\StringTranslation\StringTranslationTrait;
use Drupal\fastly\Form\PurgeOptionsForm;
use Drupal\fastly\Services\Webhook;
@@ -107,7 +107,7 @@ class Api {
  /**
   * Messenger.
   *
   * @var \Drupal\Core\Messenger\Messenger
   * @var \Drupal\Core\Messenger\MessengerInterface
   */
  protected $messenger;

@@ -139,10 +139,10 @@ class Api {
   *   The request stack object.
   * @param \Drupal\fastly\CacheTagsHash $cache_tags_hash
   *   CacheTagsHash service.
   * @param \Drupal\Core\Messenger\Messenger $messenger
   * @param \Drupal\Core\Messenger\MessengerInterface $messenger
   *   Messenger service.
   */
  public function __construct(ConfigFactoryInterface $config_factory, $host, ClientInterface $http_client, LoggerInterface $logger, State $state, $connectTimeout, Webhook $webhook, RequestStack $requestStack, CacheTagsHash $cache_tags_hash, Messenger $messenger) {
  public function __construct(ConfigFactoryInterface $config_factory, $host, ClientInterface $http_client, LoggerInterface $logger, State $state, $connectTimeout, Webhook $webhook, RequestStack $requestStack, CacheTagsHash $cache_tags_hash, MessengerInterface $messenger) {

    $config = $config_factory->get('fastly.settings');
    $this->apiKey = getenv('FASTLY_API_TOKEN') ?: $config->get('api_key');