Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Debug.php
Go to the documentation of this file.
1 <?php
7 
13 
18 {
22  private $state;
23 
27  private $scopeConfig;
28 
32  private $deploymentConfig;
33 
41  public function __construct(
43  State $state,
44  ScopeConfigInterface $scopeConfig,
45  DeploymentConfig $deploymentConfig,
46  $filePath = null
47  ) {
48  parent::__construct($filesystem, $filePath);
49 
50  $this->state = $state;
51  $this->scopeConfig = $scopeConfig;
52  $this->deploymentConfig = $deploymentConfig;
53  }
54 
58  public function isHandling(array $record)
59  {
60  if ($this->deploymentConfig->isAvailable()) {
61  return
62  parent::isHandling($record)
63  && $this->scopeConfig->getValue('dev/debug/debug_logging', ScopeInterface::SCOPE_STORE);
64  }
65 
66  return parent::isHandling($record);
67  }
68 }
__construct(DriverInterface $filesystem, State $state, ScopeConfigInterface $scopeConfig, DeploymentConfig $deploymentConfig, $filePath=null)
Definition: Debug.php:41
$deploymentConfig