Skip to content

Commit a568995

Browse files
committed
Add exit code for server command
1 parent 5515324 commit a568995

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Command/ServerCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ protected function configure()
3232
protected function execute(InputInterface $input, OutputInterface $output)
3333
{
3434
$output->writeln('<error>This command is deprecated and will be removed in v2, use gos:websocket:server instead</error>');
35-
parent::execute($input, $output);
35+
36+
return parent::execute($input, $output);
3637
}
3738
}

Command/WebsocketServerCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
7676
$input->getOption('port') === null ? $this->port : $input->getOption('port'),
7777
$input->getOption('profile')
7878
);
79+
80+
return 0;
7981
}
8082
}

0 commit comments

Comments
 (0)