Config: add getPath() (#2758)

Config->getPath() returns the path of the config i.e. the place where the config file is located.
This commit is contained in:
Jack M. Taylor 2019-02-14 15:58:19 +05:00 committed by Dylan T
parent 470879c9bf
commit 205e13d880

View File

@ -192,6 +192,15 @@ class Config{
}
}
/**
* Returns the path of the config.
*
* @return string
*/
public function getPath() : string{
return $this->file;
}
/**
* Flushes the config to disk in the appropriate format.
*