mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-10 05:58:42 +00:00
Remove application config from abstract
This commit is contained in:
parent
014c1ec311
commit
a1a7420654
|
|
@ -35,14 +35,6 @@ class ApplicationAbstract
|
||||||
*/
|
*/
|
||||||
protected $appName = '';
|
protected $appName = '';
|
||||||
|
|
||||||
/**
|
|
||||||
* Config.
|
|
||||||
*
|
|
||||||
* @var array
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
protected $config = [];
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Database object.
|
* Database object.
|
||||||
*
|
*
|
||||||
|
|
@ -153,7 +145,7 @@ class ApplicationAbstract
|
||||||
*/
|
*/
|
||||||
public function __set($name, $value)
|
public function __set($name, $value)
|
||||||
{
|
{
|
||||||
if(!empty($this->$name) || $name === 'config') {
|
if(!empty($this->$name)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -173,10 +165,6 @@ class ApplicationAbstract
|
||||||
*/
|
*/
|
||||||
public function __get($name)
|
public function __get($name)
|
||||||
{
|
{
|
||||||
if($name === 'config') {
|
|
||||||
return [];
|
|
||||||
}
|
|
||||||
|
|
||||||
return $this->$name;
|
return $this->$name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user