|
5 | 5 | */ |
6 | 6 | namespace Ho\Import\Console\Command; |
7 | 7 |
|
8 | | -use Ho\Import\Api\ImportProfileListInterface; |
9 | 8 | use Magento\Cron\Model\Schedule; |
10 | 9 | use Magento\Framework\Phrase; |
11 | 10 | use Symfony\Component\Console\Command\Command; |
@@ -42,14 +41,12 @@ class CronScheduleCommand extends Command |
42 | 41 | private $timezone; |
43 | 42 |
|
44 | 43 | /** |
45 | | - * HoImportRunCommand constructor. |
46 | | - * |
47 | | - * @param \Magento\Cron\Model\ConfigInterface $config |
| 44 | + * @param \Magento\Cron\Model\ConfigInterface\Proxy $config |
48 | 45 | * @param \Magento\Cron\Model\ScheduleFactory $scheduleFactory |
49 | 46 | * @param \Magento\Framework\Stdlib\DateTime\TimezoneInterface $timezone |
50 | 47 | */ |
51 | 48 | public function __construct( |
52 | | - \Magento\Cron\Model\ConfigInterface $config, |
| 49 | + \Magento\Cron\Model\ConfigInterface\Proxy $config, |
53 | 50 | \Magento\Cron\Model\ScheduleFactory $scheduleFactory, |
54 | 51 | \Magento\Framework\Stdlib\DateTime\TimezoneInterface $timezone |
55 | 52 | ) { |
@@ -89,6 +86,8 @@ public function configure() |
89 | 86 | * @param InputInterface $input |
90 | 87 | * @param OutputInterface $output |
91 | 88 | * |
| 89 | + * @throws \Magento\Framework\Exception\AlreadyExistsException |
| 90 | + * |
92 | 91 | * @return void |
93 | 92 | */ |
94 | 93 | protected function execute(InputInterface $input, OutputInterface $output) |
@@ -156,6 +155,8 @@ protected function getJobFromName($jobName) |
156 | 155 | * @param string[] $job |
157 | 156 | * @param \DateInterval $ahead |
158 | 157 | * |
| 158 | + * @throws \Magento\Framework\Exception\CronException |
| 159 | + * |
159 | 160 | * @return Schedule |
160 | 161 | */ |
161 | 162 | private function generateSchedule($job, \DateInterval $ahead) |
|
0 commit comments