Add #StandWithUkraine banner to updates ๐ŸŸฆ๐ŸŸจ ยท composer/packagist@86244a3

1 min read Original article โ†—
Original file line numberDiff line numberDiff line change

@@ -318,6 +318,7 @@ public function dump(array $packageIds, bool $force = false, bool $verbose = fal

318318

$this->rootFile['providers-api'] = str_replace('VND/PKG', '%package%', $this->router->generate('view_providers', ['name' => 'VND/PKG', '_format' => 'json'], UrlGeneratorInterface::ABSOLUTE_URL));

319319

$this->rootFile['warning'] = 'Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/';

320320

$this->rootFile['warning-versions'] = '<1.99';

321+

$this->rootFile['info'] = json_decode('"\u001b[37;44m#StandWith\u001b[30;43mUkraine\u001b[0m"');

321322
322323

if ($verbose) {

323324

echo 'Dumping individual listings'.PHP_EOL;