| @@ 121-137 (lines=17) @@ | ||
| 118 | * |
|
| 119 | * @return int|null|void |
|
| 120 | */ |
|
| 121 | protected function execute(InputInterface $input, OutputInterface $output) |
|
| 122 | { |
|
| 123 | $loggerHelper = new LoggerHelper(); |
|
| 124 | $logger = $loggerHelper->create($input->getOption('debug')); |
|
| 125 | ||
| 126 | $logger->debug('started checking for new version of remote file'); |
|
| 127 | ||
| 128 | $browscap = new BrowscapUpdater(); |
|
| 129 | ||
| 130 | $browscap |
|
| 131 | ->setLogger($logger) |
|
| 132 | ->setCache($this->getCache($input)) |
|
| 133 | ->checkUpdate() |
|
| 134 | ; |
|
| 135 | ||
| 136 | $logger->debug('finished checking for new version of remote file'); |
|
| 137 | } |
|
| 138 | ||
| 139 | /** |
|
| 140 | * @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 |
|