Separate package warning from view representation
parent
52ca1bd9c5
commit
086c9d5c56
|
@ -375,16 +375,13 @@ EOT
|
||||||
$replacement = (is_string($latestPackage->getReplacementPackage()))
|
$replacement = (is_string($latestPackage->getReplacementPackage()))
|
||||||
? 'Use ' . $latestPackage->getReplacementPackage() . ' instead'
|
? 'Use ' . $latestPackage->getReplacementPackage() . ' instead'
|
||||||
: 'No replacement was suggested';
|
: 'No replacement was suggested';
|
||||||
|
$packageWarning = sprintf(
|
||||||
$io->writeError('');
|
'Package %s is abandoned, you should avoid using it. %s.',
|
||||||
$io->writeError(
|
|
||||||
sprintf(
|
|
||||||
"<warning>Package %s is abandoned, you should avoid using it. %s.</warning>",
|
|
||||||
$package->getPrettyName(),
|
$package->getPrettyName(),
|
||||||
$replacement
|
$replacement
|
||||||
),
|
|
||||||
false
|
|
||||||
);
|
);
|
||||||
|
$io->writeError('');
|
||||||
|
$io->writeError('<warning>' . $packageWarning . '</warning>', false);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$io->write($indent . $package, false);
|
$io->write($indent . $package, false);
|
||||||
|
|
Loading…
Reference in New Issue