mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-05-03 20:56:21 +00:00
Remove static references
This commit is contained in:
@@ -203,7 +203,7 @@ class DebugController extends Controller
|
||||
}
|
||||
} catch (Exception $e) { // generic catch for open basedir.
|
||||
Log::debug('Could not check build counter, but thats ok.');
|
||||
Log::warning($e->getMessage());
|
||||
app('log')->warning($e->getMessage());
|
||||
}
|
||||
try {
|
||||
if (file_exists('/var/www/build-date-main.txt')) {
|
||||
@@ -211,7 +211,7 @@ class DebugController extends Controller
|
||||
}
|
||||
} catch (Exception $e) { // generic catch for open basedir.
|
||||
Log::debug('Could not check build date, but thats ok.');
|
||||
Log::warning($e->getMessage());
|
||||
app('log')->warning($e->getMessage());
|
||||
}
|
||||
if ('' !== (string)env('BASE_IMAGE_BUILD')) {
|
||||
$return['base_build'] = env('BASE_IMAGE_BUILD');
|
||||
|
||||
@@ -128,7 +128,7 @@ class Authenticate
|
||||
private function validateBlockedUser(?User $user, array $guards): void
|
||||
{
|
||||
if (null === $user) {
|
||||
Log::warning('User is null, throw exception?');
|
||||
app('log')->warning('User is null, throw exception?');
|
||||
}
|
||||
if (null !== $user) {
|
||||
// Log::debug(get_class($user));
|
||||
@@ -137,7 +137,7 @@ class Authenticate
|
||||
if ('email_changed' === $user->blocked_code) {
|
||||
$message = (string)trans('firefly.email_changed_logout');
|
||||
}
|
||||
Log::warning('User is blocked, cannot use authentication method.');
|
||||
app('log')->warning('User is blocked, cannot use authentication method.');
|
||||
app('session')->flash('logoutMessage', $message);
|
||||
/** @noinspection PhpUndefinedMethodInspection */
|
||||
$this->auth->logout(); // @phpstan-ignore-line (thinks function is undefined)
|
||||
|
||||
Reference in New Issue
Block a user