From bd9cc11c4389105b28114784e8fb2fb87a293a39 Mon Sep 17 00:00:00 2001 From: Aleksi Peebles Date: Mon, 13 Nov 2017 15:24:30 +0200 Subject: [PATCH 1/2] Add console and router.php from editions --- bin/console | 46 +++++++++++++++++++ bin/router.php | 41 +++++++++++++++++ composer.json | 3 +- .../Console/Commands/ServerCommand.php | 2 +- 4 files changed, 90 insertions(+), 2 deletions(-) create mode 100644 bin/console create mode 100644 bin/router.php diff --git a/bin/console b/bin/console new file mode 100644 index 00000000..5bd68c51 --- /dev/null +++ b/bin/console @@ -0,0 +1,46 @@ +dispatch("config.configLoadEnd"); + +// run the console +Console::run(); diff --git a/bin/router.php b/bin/router.php new file mode 100644 index 00000000..42976b92 --- /dev/null +++ b/bin/router.php @@ -0,0 +1,41 @@ +pathPHP." -S ".$host." ".$coreDir."/server/router.php"; + $command = $this->pathPHP." -S ".$host." ".$coreDir."/router.php"; $commands = array(); $commands[] = array("command" => $command, "cwd" => $publicDir, "timeout" => null, "idle" => 1800); From e13480fedbeef73aefd594acfecc63116a51c225 Mon Sep 17 00:00:00 2001 From: Aleksi Peebles Date: Mon, 13 Nov 2017 15:46:35 +0200 Subject: [PATCH 2/2] Fix console and router.php baseDir --- bin/console | 2 +- bin/router.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/console b/bin/console index 5bd68c51..b8631a69 100644 --- a/bin/console +++ b/bin/console @@ -20,7 +20,7 @@ if (!function_exists("json_decode")) { } // set-up the project base directory -$baseDir = __DIR__."/../"; +$baseDir = __DIR__."/../../../../"; // auto-load classes if (file_exists($baseDir."vendor/autoload.php")) { diff --git a/bin/router.php b/bin/router.php index 42976b92..1dc4d8ce 100644 --- a/bin/router.php +++ b/bin/router.php @@ -11,7 +11,7 @@ use \PatternLab\Config; // set-up the project base directory -$baseDir = __DIR__."/../../"; +$baseDir = __DIR__."/../../../../"; // auto-load classes if (file_exists($baseDir."vendor/autoload.php")) {