From 65ffee8696d6e8625fe3321e800f0cdd55ee1190 Mon Sep 17 00:00:00 2001 From: Toby Zerner <toby.zerner@gmail.com> Date: Tue, 19 Sep 2017 19:45:31 +0930 Subject: [PATCH] Use ::class --- framework/core/src/Core/User.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/core/src/Core/User.php b/framework/core/src/Core/User.php index 4f6238278..dd50ab449 100755 --- a/framework/core/src/Core/User.php +++ b/framework/core/src/Core/User.php @@ -29,6 +29,7 @@ use Flarum\Event\UserWasActivated; use Flarum\Event\UserWasDeleted; use Flarum\Event\UserWasRegistered; use Flarum\Event\UserWasRenamed; +use Flarum\Forum\UrlGenerator; use Flarum\Foundation\Application; use Illuminate\Contracts\Hashing\Hasher; use Symfony\Component\HttpFoundation\Session\SessionInterface; @@ -328,7 +329,7 @@ class User extends AbstractModel return $this->avatar_path; } - return app('Flarum\Forum\UrlGenerator')->toPath('assets/avatars/'.$this->avatar_path); + return app(UrlGenerator::class)->toPath('assets/avatars/'.$this->avatar_path); } }