Skip to content
Snippets Groups Projects
Commit d603d7fa authored by Thomas Kiehne's avatar Thomas Kiehne
Browse files

Issue #3305875 by tkiehne: Canvas service fails to initialize when logger...

Issue #3305875 by tkiehne: Canvas service fails to initialize when logger channel factory is overridden
parent f7c675d8
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ use Drupal\Component\Serialization\Json; ...@@ -6,7 +6,7 @@ use Drupal\Component\Serialization\Json;
use Drupal\Core\Config\ConfigFactory; use Drupal\Core\Config\ConfigFactory;
use Drupal\Core\Config\ConfigFactoryInterface; use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Http\ClientFactory; use Drupal\Core\Http\ClientFactory;
use Drupal\Core\Logger\LoggerChannelFactory; use Drupal\Core\Logger\LoggerChannelFactoryInterface;
use Drupal\Core\StringTranslation\StringTranslationTrait; use Drupal\Core\StringTranslation\StringTranslationTrait;
use Drupal\key\KeyRepository; use Drupal\key\KeyRepository;
use Drupal\key\KeyRepositoryInterface; use Drupal\key\KeyRepositoryInterface;
...@@ -38,7 +38,7 @@ class CanvasApiService { ...@@ -38,7 +38,7 @@ class CanvasApiService {
ClientFactory $clientFactory, ClientFactory $clientFactory,
ConfigFactoryInterface $config, ConfigFactoryInterface $config,
KeyRepositoryInterface $keyRepository, KeyRepositoryInterface $keyRepository,
LoggerChannelFactory $loggerChannelFactory LoggerChannelFactoryInterface $loggerChannelFactory
){ ){
$this->logger = $loggerChannelFactory->get('canvas_api'); $this->logger = $loggerChannelFactory->get('canvas_api');
$this->lms = $config->get('canvas_lms.settings'); $this->lms = $config->get('canvas_lms.settings');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment