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