From 120821efcd98d0d362488807befd0585a53a6442 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Sat, 16 Apr 2016 13:06:58 +0900 Subject: [PATCH] AbstractServer: Allow omitting base path parameter It will be inferred from the current directory instead. --- framework/core/src/Foundation/AbstractServer.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/framework/core/src/Foundation/AbstractServer.php b/framework/core/src/Foundation/AbstractServer.php index 7bcd7882d..e6f559155 100644 --- a/framework/core/src/Foundation/AbstractServer.php +++ b/framework/core/src/Foundation/AbstractServer.php @@ -30,8 +30,12 @@ abstract class AbstractServer /** * @param string $path */ - public function __construct($path) + public function __construct($path = null) { + if ($path === null) { + $path = getcwd(); + } + $this->path = $path; if (file_exists($file = $this->path.'/config.php')) {