Skip to content
Snippets Groups Projects
Commit 6e55327c authored by Omar Mohamad - El Hassan Lopesino's avatar Omar Mohamad - El Hassan Lopesino
Browse files

Issue #3396890: Fix config reading for salesforce logs

parent 3edd1fc8
No related branches found
No related tags found
1 merge request!63Draft: Resolve #3396890 "Allow logging push"
......@@ -10,6 +10,7 @@ use Drupal\salesforce\Event\SalesforceExceptionEventInterface;
use Drupal\salesforce_mapping\Event\SalesforcePushParamsEvent;
use Psr\Log\LoggerInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Drupal\Core\Config\ImmutableConfig;
/**
* Salesforce Logger Subscriber.
......@@ -27,24 +28,24 @@ class SalesforceLoggerSubscriber implements EventSubscriberInterface {
*/
protected $logger;
/**
/**
* The config factory.
*
* @var \Drupal\Core\Config\ConfigFactoryInterface
* @var ImmutableConfig
*/
protected $configFactory;
protected ImmutableConfig $config;
/**
* Create a new Salesforce Logger Subscriber.
*
* @param \Psr\Log\LoggerInterface $logger
* The logger.
* @param \Drupal\Core\Config\ConfigFactoryInterface $config
* @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
* Config factory.
*/
public function __construct(LoggerInterface $logger, ConfigFactoryInterface $config) {
public function __construct(LoggerInterface $logger, ConfigFactoryInterface $config_factory) {
$this->logger = $logger;
$this->config = $config;
$this->config = $config_factory->get('salesforce_logger.settings');
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment