Skip to content

Commit

Permalink
Cli standardisation (#10)
Browse files Browse the repository at this point in the history
* build: update deps

* stan: port should be string

* stan: cast port integer to string

* refactor: use standard namespace cli
  • Loading branch information
g105b authored Sep 23, 2021
1 parent 5e90d67 commit 0036669
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/serve
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?php
use Gt\Cli\Application;
use Gt\Cli\Argument\CommandArgumentList;
use Gt\Server\Command\StartCommand;
use Gt\Server\Cli\StartCommand;

foreach([__DIR__ . "/../../../autoload.php",__DIR__ . "/../vendor/autoload.php"] as $location) {
if(file_exists($location)) {
Expand All @@ -16,4 +16,4 @@ $app = new Application(
new CommandArgumentList("start", ...$argv),
new StartCommand()
);
$app->run();
$app->run();
2 changes: 1 addition & 1 deletion src/Command/StartCommand.php → src/Cli/StartCommand.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Gt\Server\Command;
namespace Gt\Server\Cli;

use Gt\Cli\Argument\ArgumentValueList;
use Gt\Cli\Command\Command;
Expand Down

0 comments on commit 0036669

Please sign in to comment.