Rename a few things.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<?php namespace App\Http\Controllers\Auth;
|
<?php namespace App\Http\Controllers\Auth;
|
||||||
|
|
||||||
use Illuminate\Contracts\Auth\Authenticator;
|
use Illuminate\Contracts\Auth\Guard;
|
||||||
|
|
||||||
use App\Http\Requests\Auth\LoginRequest;
|
use App\Http\Requests\Auth\LoginRequest;
|
||||||
use App\Http\Requests\Auth\RegisterRequest;
|
use App\Http\Requests\Auth\RegisterRequest;
|
||||||
@@ -12,19 +12,19 @@ use App\Http\Requests\Auth\RegisterRequest;
|
|||||||
class AuthController {
|
class AuthController {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The authenticator implementation.
|
* The Guard implementation.
|
||||||
*
|
*
|
||||||
* @var Authenticator
|
* @var Guard
|
||||||
*/
|
*/
|
||||||
protected $auth;
|
protected $auth;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new authentication controller instance.
|
* Create a new authentication controller instance.
|
||||||
*
|
*
|
||||||
* @param Authenticator $auth
|
* @param Guard $auth
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function __construct(Authenticator $auth)
|
public function __construct(Guard $auth)
|
||||||
{
|
{
|
||||||
$this->auth = $auth;
|
$this->auth = $auth;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
<?php namespace App\Http\Middleware;
|
<?php namespace App\Http\Middleware;
|
||||||
|
|
||||||
use Closure;
|
use Closure;
|
||||||
use Illuminate\Contracts\Auth\Authenticator;
|
use Illuminate\Contracts\Auth\Guard;
|
||||||
use Illuminate\Contracts\Routing\Middleware;
|
use Illuminate\Contracts\Routing\Middleware;
|
||||||
use Illuminate\Contracts\Routing\ResponseFactory;
|
use Illuminate\Contracts\Routing\ResponseFactory;
|
||||||
|
|
||||||
class AuthMiddleware implements Middleware {
|
class AuthMiddleware implements Middleware {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The authenticator implementation.
|
* The Guard implementation.
|
||||||
*
|
*
|
||||||
* @var Authenticator
|
* @var Guard
|
||||||
*/
|
*/
|
||||||
protected $auth;
|
protected $auth;
|
||||||
|
|
||||||
@@ -24,11 +24,11 @@ class AuthMiddleware implements Middleware {
|
|||||||
/**
|
/**
|
||||||
* Create a new filter instance.
|
* Create a new filter instance.
|
||||||
*
|
*
|
||||||
* @param Authenticator $auth
|
* @param Guard $auth
|
||||||
* @param ResponseFactory $response
|
* @param ResponseFactory $response
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function __construct(Authenticator $auth,
|
public function __construct(Guard $auth,
|
||||||
ResponseFactory $response)
|
ResponseFactory $response)
|
||||||
{
|
{
|
||||||
$this->auth = $auth;
|
$this->auth = $auth;
|
||||||
|
|||||||
@@ -1,25 +1,25 @@
|
|||||||
<?php namespace App\Http\Middleware;
|
<?php namespace App\Http\Middleware;
|
||||||
|
|
||||||
use Closure;
|
use Closure;
|
||||||
|
use Illuminate\Contracts\Auth\Guard;
|
||||||
use Illuminate\Contracts\Routing\Middleware;
|
use Illuminate\Contracts\Routing\Middleware;
|
||||||
use Illuminate\Contracts\Auth\Authenticator;
|
|
||||||
|
|
||||||
class BasicAuthMiddleware implements Middleware {
|
class BasicAuthMiddleware implements Middleware {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The authenticator implementation.
|
* The Guard implementation.
|
||||||
*
|
*
|
||||||
* @var Authenticator
|
* @var Guard
|
||||||
*/
|
*/
|
||||||
protected $auth;
|
protected $auth;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new filter instance.
|
* Create a new filter instance.
|
||||||
*
|
*
|
||||||
* @param Authenticator $auth
|
* @param Guard $auth
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function __construct(Authenticator $auth)
|
public function __construct(Guard $auth)
|
||||||
{
|
{
|
||||||
$this->auth = $auth;
|
$this->auth = $auth;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,26 +1,26 @@
|
|||||||
<?php namespace App\Http\Middleware;
|
<?php namespace App\Http\Middleware;
|
||||||
|
|
||||||
use Closure;
|
use Closure;
|
||||||
|
use Illuminate\Contracts\Auth\Guard;
|
||||||
use Illuminate\Http\RedirectResponse;
|
use Illuminate\Http\RedirectResponse;
|
||||||
use Illuminate\Contracts\Auth\Authenticator;
|
|
||||||
use Illuminate\Contracts\Routing\Middleware;
|
use Illuminate\Contracts\Routing\Middleware;
|
||||||
|
|
||||||
class GuestMiddleware implements Middleware {
|
class GuestMiddleware implements Middleware {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The authenticator implementation.
|
* The Guard implementation.
|
||||||
*
|
*
|
||||||
* @var Authenticator
|
* @var Guard
|
||||||
*/
|
*/
|
||||||
protected $auth;
|
protected $auth;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new filter instance.
|
* Create a new filter instance.
|
||||||
*
|
*
|
||||||
* @param Authenticator $auth
|
* @param Guard $auth
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function __construct(Authenticator $auth)
|
public function __construct(Guard $auth)
|
||||||
{
|
{
|
||||||
$this->auth = $auth;
|
$this->auth = $auth;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user