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