$this->
displayCapabilities($output,
$optimizerService->
getOptimizers());
return 1;
} if ($input->
getOption('info'
)) { $this->
displayCapabilities($output,
$optimizerService->
getOptimizers());
return 0;
} if ($mediaService->
getAdapterType() !== 'local' && !
$input->
getOption('force'
)) { $output->
writeln( "<error>Using the sw:media:optimize-command with remote filesystem adapters (you are using adapter '{
$mediaService->
getAdapterType()}') is discouraged!</error>
Due to the nature of the task, all files will be downloaded, optimized and uploaded again.
This can take a very long time, depending on the number of files that need to be optimized.
"
);
$doProceed =
$this->
getHelper('question'
)->
ask( $input,
$output,
new ConfirmationQuestion('Do you still wish to proceed? (y/N) ', false
) );