Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Data.php
Go to the documentation of this file.
1 <?php
7 
9 
14 {
24  public function __construct(
25  \Magento\Cron\Model\Config\Reader\Xml $reader,
26  \Magento\Framework\Config\CacheInterface $cache,
27  \Magento\Cron\Model\Config\Reader\Db $dbReader,
28  $cacheId = 'crontab_config_cache',
29  SerializerInterface $serializer = null
30  ) {
31  parent::__construct($reader, $cache, $cacheId, $serializer);
32  $this->merge($dbReader->get());
33  }
34 
40  public function getJobs()
41  {
42  return $this->get();
43  }
44 }
__construct(\Magento\Cron\Model\Config\Reader\Xml $reader, \Magento\Framework\Config\CacheInterface $cache, \Magento\Cron\Model\Config\Reader\Db $dbReader, $cacheId='crontab_config_cache', SerializerInterface $serializer=null)
Definition: Data.php:24
merge(array $config)
Definition: Data.php:120