Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Syslog.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 
12 
17 {
18  public const CONFIG_PATH = 'dev/syslog/syslog_logging';
19 
25  private $scopeConfig;
26 
32  private $deploymentConfig;
33 
39  public function __construct(
40  ScopeConfigInterface $scopeConfig,
41  DeploymentConfig $deploymentConfig,
42  string $ident
43  ) {
44  parent::__construct($ident);
45 
46  $this->scopeConfig = $scopeConfig;
47  $this->deploymentConfig = $deploymentConfig;
48  }
49 
53  public function isHandling(array $record): bool
54  {
55  return parent::isHandling($record)
56  && $this->deploymentConfig->isAvailable()
57  && $this->scopeConfig->getValue(self::CONFIG_PATH);
58  }
59 }
__construct(ScopeConfigInterface $scopeConfig, DeploymentConfig $deploymentConfig, string $ident)
Definition: Syslog.php:39
$deploymentConfig