backport 205e13d88: 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 K. Taylor
parent eedea4998b
commit eaa78fe849

View File

@ -248,6 +248,15 @@ class Config{
}
}
/**
* Returns the path of the config.
*
* @return string
*/
public function getPath() : string{
return $this->file;
}
/**
* Sets the options for the JSON encoding when saving
*