} else { $shops =
$shopRepository->
getActiveShopsFixed();
} $io =
new SymfonyStyle($input,
$output);
$options =
$this->
prepareOptions($input->
getOptions(),
$urlProviderFactory);
// Clear cache?
if ($input->
getOption('clear-cache'
)) { $io->
writeln('Clearing httpcache.'
);
$this->container->
get(CacheManager::
class)->
clearHttpCache();
} /*
* Print information about concurrent requests
* Help message for this command may be confusing about using an equal sign. So better strip it.
*/
$concurrentRequests =
(int) trim($input->
getOption('concurrent-requests'
), '='
);
$limit =
$concurrentRequests > 10 ?
$concurrentRequests : 10;
$io->
writeln(sprintf('Calling URLs with %d concurrent requests',
$concurrentRequests));
// Print warming information