make appPath() read/write
This commit is contained in:
parent
8d938fc326
commit
9611f0b78f
1 changed files with 4 additions and 2 deletions
|
@ -65,8 +65,10 @@ class Settings implements \Iterator
|
||||||
* If the package path is not set, it is set to the appPath
|
* If the package path is not set, it is set to the appPath
|
||||||
* @param string $path
|
* @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;
|
if ($this->pkgPath === $this->appPath) $this->pkgPath = $path;
|
||||||
$this->appPath = $path;
|
$this->appPath = $path;
|
||||||
return $this;
|
return $this;
|
||||||
|
@ -204,7 +206,7 @@ class Settings implements \Iterator
|
||||||
|
|
||||||
// create() {{{
|
// 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 )
|
public function create( ?array $settings=null )
|
||||||
|
|
Loading…
Reference in a new issue