Skip to content

Commit d0676aa

Browse files
Revert "Add command signal handler. (#2685)"
This reverts commit 9472453.
1 parent b35b708 commit d0676aa

File tree

2 files changed

+0
-74
lines changed

2 files changed

+0
-74
lines changed

src/Hooks/CommandSignalHandler.php

Lines changed: 0 additions & 66 deletions
This file was deleted.

src/Terminus.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
use Symfony\Component\Filesystem\Filesystem;
5050
use SelfUpdate\SelfUpdateCommand;
5151
use Pantheon\Terminus\Hooks\CommandTracker;
52-
use Pantheon\Terminus\Hooks\CommandSignalHandler;
5352
use Symfony\Component\EventDispatcher\EventDispatcher;
5453
use Pantheon\Terminus\Update\UpdateChecker;
5554

@@ -149,9 +148,6 @@ public function __construct(Config $config, InputInterface $input, OutputInterfa
149148
$update_checker->run();
150149

151150
$container->get('eventDispatcher')->addSubscriber($container->get('Pantheon\Terminus\Hooks\CommandTracker'));
152-
$container->get('eventDispatcher')->addSubscriber(
153-
$container->get('Pantheon\Terminus\Hooks\CommandSignalHandler')
154-
);
155151

156152
// We can't use Robo\Application addSelfUpdateCommand because if plugin manager is running it won't be a phar from there.
157153
if (!empty(\Phar::running())) {
@@ -237,9 +233,6 @@ private function configureContainer()
237233
// Command Tracker
238234
$container->add(CommandTracker::class);
239235

240-
// Command Signal Handler
241-
$container->add(CommandSignalHandler::class);
242-
243236
// Install our command cache into the command factory
244237
$commandCacheDir = $this->getConfig()->get('command_cache_dir');
245238
if (!is_dir($commandCacheDir)) {
@@ -337,7 +330,6 @@ private function addBuiltInCommandsAndHooks()
337330
// List of all hooks and commands. Update via 'composer update-class-lists'
338331
$this->commands = [
339332
'Pantheon\\Terminus\\Hooks\\Authorizer',
340-
'Pantheon\\Terminus\\Hooks\\CommandSignalHandler',
341333
'Pantheon\\Terminus\\Hooks\\CommandTracker',
342334
'Pantheon\\Terminus\\Hooks\\Interacter',
343335
'Pantheon\\Terminus\\Hooks\\RoleValidator',

0 commit comments

Comments
 (0)