make appPath() read/write

This commit is contained in:
Norbert Wagner 2021-05-04 17:53:20 +02:00
parent 8d938fc326
commit 9611f0b78f
1 changed files with 4 additions and 2 deletions

View File

@ -65,8 +65,10 @@ class Settings implements \Iterator
* If the package path is not set, it is set to the appPath
* @param string $path
*///}}}
public function appPath( string $path )
public function appPath( ?string $path=null )
{
if (! isset($path)) return $this->appPath;
if ($this->pkgPath === $this->appPath) $this->pkgPath = $path;
$this->appPath = $path;
return $this;
@ -204,7 +206,7 @@ class Settings implements \Iterator
// create() {{{
/** {{{
* Creates a copy of the Settingsobject without the Settings
* Creates a copy of the Settingsobject without the configuration directives
*
*///}}}
public function create( ?array $settings=null )