Skip to content

Commit 8ef0384

Browse files
committed
added kill command
1 parent fc6b720 commit 8ef0384

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

src/Application/HTTP/Router.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ public function getCommand($commandName, Container $container)
2323
$command = new \Command\CompleteCommand($container);
2424
} elseif ($commandName == 'save') {
2525
$command = new \Command\SaveCommand($container);
26+
} elseif ($commandName == 'kill') {
27+
$command = new \Command\KillCommand();
2628
} else {
2729
$command = new \Command\ErrorCommand();
2830
}

src/Command/KillCommand.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace Command;
4+
5+
class KillCommand implements CommandInterface
6+
{
7+
public function execute()
8+
{
9+
die();
10+
}
11+
}

0 commit comments

Comments
 (0)