|
@@ -25,9 +25,13 @@ class AppStatusHook
|
|
|
private readonly Config $config,
|
|
private readonly Config $config,
|
|
|
)
|
|
)
|
|
|
{
|
|
{
|
|
|
- $authConfigSource = Factory::createConfig()->getAuthConfigSource();
|
|
|
|
|
- $authFile = $authConfigSource->getName();
|
|
|
|
|
- if (!file_exists($authFile)) {
|
|
|
|
|
|
|
+ try {
|
|
|
|
|
+ $authConfigSource = Factory::createConfig()->getAuthConfigSource();
|
|
|
|
|
+ $authFile = $authConfigSource->getName();
|
|
|
|
|
+ if (!file_exists($authFile)) {
|
|
|
|
|
+ $authFile = root_path('runtime').'auth.json';
|
|
|
|
|
+ }
|
|
|
|
|
+ } catch (\RuntimeException) {
|
|
|
$authFile = root_path('runtime').'auth.json';
|
|
$authFile = root_path('runtime').'auth.json';
|
|
|
}
|
|
}
|
|
|
$authJsonArr = json_decode(file_get_contents($authFile), true);
|
|
$authJsonArr = json_decode(file_get_contents($authFile), true);
|