This commit is contained in:
2021-08-12 17:27:19 +08:00
parent 62b2d038dc
commit 11ab2f1e2f
2 changed files with 12 additions and 11 deletions
+11 -10
View File
@@ -169,8 +169,9 @@ abstract class BaseApplication extends Component
/** /**
* @param $name * @param $name
* @return mixed * @return mixed
* @throws \ReflectionException * @throws ReflectionException
* @throws \Kiri\Exception\NotFindClassException * @throws NotFindClassException
* @throws Exception
*/ */
public function __get($name): mixed public function __get($name): mixed
{ {
@@ -264,8 +265,8 @@ abstract class BaseApplication extends Component
/** /**
* @param $name * @param $name
* @return mixed * @return mixed
* @throws \ReflectionException * @throws ReflectionException
* @throws \Kiri\Exception\NotFindClassException * @throws NotFindClassException
*/ */
public function get($name): mixed public function get($name): mixed
{ {
@@ -421,8 +422,8 @@ abstract class BaseApplication extends Component
/** /**
* @param $array * @param $array
* @throws \ReflectionException * @throws ReflectionException
* @throws \Kiri\Exception\NotFindClassException * @throws NotFindClassException
*/ */
private function setComponents($array): void private function setComponents($array): void
{ {
@@ -433,8 +434,8 @@ abstract class BaseApplication extends Component
/** /**
* @param $id * @param $id
* @param $definition * @param $definition
* @throws \ReflectionException * @throws ReflectionException
* @throws \Kiri\Exception\NotFindClassException * @throws NotFindClassException
*/ */
public function set($id, $definition): void public function set($id, $definition): void
{ {
@@ -445,8 +446,8 @@ abstract class BaseApplication extends Component
/** /**
* @param $id * @param $id
* @param $definition * @param $definition
* @throws \ReflectionException * @throws ReflectionException
* @throws \Kiri\Exception\NotFindClassException * @throws NotFindClassException
*/ */
public function has($id): bool public function has($id): bool
{ {
+1 -1
View File
@@ -234,7 +234,7 @@ class ServerInotify implements CustomProcess
*/ */
public function trigger_reload() public function trigger_reload()
{ {
exec(PHP_BINARY . ' ' . APP_PATH . 'snowflake runtime:builder', $output); exec(PHP_BINARY . ' ' . APP_PATH . 'kiri.php runtime:builder', $output);
print_r(implode(PHP_EOL, $output)); print_r(implode(PHP_EOL, $output));