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