From 48f398269f2d3f4bbadf5cb1b25c8d7ea79a76e8 Mon Sep 17 00:00:00 2001 From: Zach Jetson Date: Wed, 20 May 2015 16:42:32 -0700 Subject: [PATCH] Fixed typo in Cas Facade --- src/Subfission/Cas/Middleware/CASAuth.php | 4 ++-- .../Cas/Middleware/RedirectCASAuthenticated.php | 9 +++------ 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/Subfission/Cas/Middleware/CASAuth.php b/src/Subfission/Cas/Middleware/CASAuth.php index 248ce80..012224a 100644 --- a/src/Subfission/Cas/Middleware/CASAuth.php +++ b/src/Subfission/Cas/Middleware/CASAuth.php @@ -1,7 +1,7 @@ auth = $auth; $this->config = config('cas'); diff --git a/src/Subfission/Cas/Middleware/RedirectCASAuthenticated.php b/src/Subfission/Cas/Middleware/RedirectCASAuthenticated.php index 3cc146d..c63c0be 100644 --- a/src/Subfission/Cas/Middleware/RedirectCASAuthenticated.php +++ b/src/Subfission/Cas/Middleware/RedirectCASAuthenticated.php @@ -2,8 +2,6 @@ use Closure; use Illuminate\Contracts\Auth\Guard; -use App; -use Config; class RedirectCASAuthenticated { @@ -13,7 +11,7 @@ class RedirectCASAuthenticated { public function __construct(Guard $auth) { $this->auth = $auth; - $this->cas = (App::make('cas')); + $this->cas = app('cas'); } /** @@ -27,11 +25,10 @@ public function handle($request, Closure $next) { if($this->cas->isAuthenticated()) { - $redirect_path = Config::get('redirect_path'); + $redirect_path = config('redirect_path'); return redirect( $redirect_path ? $redirect_path : 'home'); } return $next($request); } - -} +} \ No newline at end of file