| @@ 117-131 (lines=15) @@ | ||
| 114 | * |
|
| 115 | * @return int|null|void |
|
| 116 | */ |
|
| 117 | protected function execute(InputInterface $input, OutputInterface $output) |
|
| 118 | { |
|
| 119 | $loggerHelper = new LoggerHelper(); |
|
| 120 | $logger = $loggerHelper->create($input->getOption('debug')); |
|
| 121 | ||
| 122 | $logger->debug('started checking for new version of remote file'); |
|
| 123 | ||
| 124 | $browscap = new BrowscapUpdater(); |
|
| 125 | ||
| 126 | $browscap->setLogger($logger); |
|
| 127 | $browscap->setCache($this->getCache($input)); |
|
| 128 | $browscap->checkUpdate(); |
|
| 129 | ||
| 130 | $logger->debug('finished checking for new version of remote file'); |
|
| 131 | } |
|
| 132 | ||
| 133 | /** |
|
| 134 | * @param InputInterface $input |
|
| @@ 132-146 (lines=15) @@ | ||
| 129 | * |
|
| 130 | * @return int|null|void |
|
| 131 | */ |
|
| 132 | protected function execute(InputInterface $input, OutputInterface $output) |
|
| 133 | { |
|
| 134 | $loggerHelper = new LoggerHelper(); |
|
| 135 | $logger = $loggerHelper->create($input->getOption('debug')); |
|
| 136 | ||
| 137 | $logger->info('started updating cache with remote file'); |
|
| 138 | ||
| 139 | $browscap = new BrowscapUpdater(); |
|
| 140 | ||
| 141 | $browscap->setLogger($logger); |
|
| 142 | $browscap->setCache($this->getCache($input)); |
|
| 143 | $browscap->update($input->getOption('remote-file')); |
|
| 144 | ||
| 145 | $logger->info('finished updating cache with remote file'); |
|
| 146 | } |
|
| 147 | ||
| 148 | /** |
|
| 149 | * @param InputInterface $input |
|