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')) {