mirror of
https://github.com/flarum/core.git
synced 2025-07-17 14:51:19 +02:00
AbstractServer: Allow omitting base path parameter
It will be inferred from the current directory instead.
This commit is contained in:
@@ -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')) {
|
||||
|
Reference in New Issue
Block a user