Skip to content

Commit

Permalink
Using ::class notation
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Jun 1, 2016
1 parent f028695 commit 81c6f19
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Http/Controllers/BasePublicController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,20 @@

use Illuminate\Routing\Controller;
use Illuminate\Support\Facades\App;
use Modules\Core\Contracts\Authentication;

abstract class BasePublicController extends Controller
{
/**
* @var \Modules\Core\Contracts\Authentication
* @var Authentication
*/
protected $auth;
public $locale;

public function __construct()
{
$this->locale = App::getLocale();
$this->auth = app('Modules\Core\Contracts\Authentication');
$this->auth = app(Authentication::class);
view()->share('currentUser', $this->auth->check());
}
}

0 comments on commit 81c6f19

Please sign in to comment.