This commit is contained in:
2023-11-30 17:48:11 +08:00
parent b25987c865
commit 91e986e613
+15
View File
@@ -62,4 +62,19 @@ class LocalService extends Component implements LocalServiceInterface
unset($this->_components[$name]);
}
/**
* @param string $name
* @return mixed
* @throws Exception
*/
public function __get(string $name)
{
if ($this->has($name)) {
return $this->get($name);
} else {
return parent::__get($name); // TODO: Change the autogenerated stub
}
}
}