diff --git a/CHANGELOG.md b/CHANGELOG.md index 483728d..91bca03 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## 0.2.1 (2024-07-20) +## What's Changed +* Fixed asset file extension detection by @roxblnfk +* Updated min version of `yiisoft/injector` by @roxblnfk + **Full Changelog**: https://github.com/php-internal/dload/compare/0.2.0...0.2.1 ## 0.2.0 (2024-07-19) diff --git a/bin/dload b/bin/dload index 487a6a7..8378262 100644 --- a/bin/dload +++ b/bin/dload @@ -51,5 +51,6 @@ if ('cli' !== PHP_SAPI) { ); $application->setDefaultCommand(Command\Get::getDefaultName(), false); $application->setVersion(Info::version()); + $application->setName(Info::NAME); $application->run(); })(); diff --git a/src/Command/Get.php b/src/Command/Get.php index c5284cf..5f522db 100644 --- a/src/Command/Get.php +++ b/src/Command/Get.php @@ -12,7 +12,6 @@ use Internal\DLoad\Module\Common\Stability; use Symfony\Component\Console\Attribute\AsCommand; use Symfony\Component\Console\Command\Command; -use Symfony\Component\Console\Command\SignalableCommandInterface; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; @@ -25,7 +24,7 @@ name: 'get', description: 'Download a binary', )] -final class Get extends Base implements SignalableCommandInterface +final class Get extends Base { private const ARG_SOFTWARE = 'software'; @@ -39,30 +38,6 @@ public function configure(): void $this->addOption('stability', null, InputOption::VALUE_OPTIONAL, 'Stability, e.g. "stable", "beta" etc.'); } - public function handleSignal(int $signal, int|false $previousExitCode = 0): int|false - { - if (\defined('SIGINT') && $signal === \SIGINT) { - $this->cancelling = true; - } - - if (\defined('SIGTERM') && $signal === \SIGTERM) { - return $signal; - } - - return false; - } - - public function getSubscribedSignals(): array - { - $result = []; - /** @psalm-suppress MixedAssignment */ - \defined('SIGINT') and $result[] = \SIGINT; - /** @psalm-suppress MixedAssignment */ - \defined('SIGTERM') and $result[] = \SIGTERM; - - return $result; - } - protected function execute(InputInterface $input, OutputInterface $output): int { parent::execute($input, $output);