From b5fc7b9bf5d4435d496aba65183885d0f0671b85 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. --- src/Foundation/AbstractServer.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Foundation/AbstractServer.php b/src/Foundation/AbstractServer.php index 7bcd7882d..e6f559155 100644 --- a/src/Foundation/AbstractServer.php +++ b/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')) {