Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Db.php
Go to the documentation of this file.
1 <?php
7 
9 
13 class Db
14 {
20  protected $_converter;
21 
25  protected $_reader;
26 
30  private $config;
31 
38  public function __construct(
39  Config $config,
40  \Magento\Cron\Model\Config\Converter\Db $converter
41  ) {
42  $this->config = $config;
43  $this->_converter = $converter;
44  }
45 
51  public function get()
52  {
53  return $this->_converter->convert($this->config->get('system', 'default'));
54  }
55 }
$config
Definition: fraud_order.php:17
__construct(Config $config, \Magento\Cron\Model\Config\Converter\Db $converter)
Definition: Db.php:38