12
12
use Internal \DLoad \Module \Common \Stability ;
13
13
use Symfony \Component \Console \Attribute \AsCommand ;
14
14
use Symfony \Component \Console \Command \Command ;
15
- use Symfony \Component \Console \Command \SignalableCommandInterface ;
16
15
use Symfony \Component \Console \Input \InputArgument ;
17
16
use Symfony \Component \Console \Input \InputInterface ;
18
17
use Symfony \Component \Console \Input \InputOption ;
25
24
name: 'get ' ,
26
25
description: 'Download a binary ' ,
27
26
)]
28
- final class Get extends Base implements SignalableCommandInterface
27
+ final class Get extends Base
29
28
{
30
29
private const ARG_SOFTWARE = 'software ' ;
31
30
@@ -39,30 +38,6 @@ public function configure(): void
39
38
$ this ->addOption ('stability ' , null , InputOption::VALUE_OPTIONAL , 'Stability, e.g. "stable", "beta" etc. ' );
40
39
}
41
40
42
- public function handleSignal (int $ signal , int |false $ previousExitCode = 0 ): int |false
43
- {
44
- if (\defined ('SIGINT ' ) && $ signal === \SIGINT ) {
45
- $ this ->cancelling = true ;
46
- }
47
-
48
- if (\defined ('SIGTERM ' ) && $ signal === \SIGTERM ) {
49
- return $ signal ;
50
- }
51
-
52
- return false ;
53
- }
54
-
55
- public function getSubscribedSignals (): array
56
- {
57
- $ result = [];
58
- /** @psalm-suppress MixedAssignment */
59
- \defined ('SIGINT ' ) and $ result [] = \SIGINT ;
60
- /** @psalm-suppress MixedAssignment */
61
- \defined ('SIGTERM ' ) and $ result [] = \SIGTERM ;
62
-
63
- return $ result ;
64
- }
65
-
66
41
protected function execute (InputInterface $ input , OutputInterface $ output ): int
67
42
{
68
43
parent ::execute ($ input , $ output );
0 commit comments