Browse Source

Move constructor to app.

Taylor Otwell 9 years ago
parent
commit
013007a9e1

+ 2 - 0
app/Http/Controllers/Auth/AuthController.php

@@ -1,6 +1,8 @@
 <?php namespace App\Http\Controllers\Auth;
 <?php namespace App\Http\Controllers\Auth;
 
 
 use App\Http\Controllers\Controller;
 use App\Http\Controllers\Controller;
+use Illuminate\Contracts\Auth\Guard;
+use Illuminate\Contracts\Auth\Registrar;
 use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;
 use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;
 
 
 class AuthController extends Controller {
 class AuthController extends Controller {

+ 17 - 0
app/Http/Controllers/Auth/PasswordController.php

@@ -1,6 +1,8 @@
 <?php namespace App\Http\Controllers\Auth;
 <?php namespace App\Http\Controllers\Auth;
 
 
 use App\Http\Controllers\Controller;
 use App\Http\Controllers\Controller;
+use Illuminate\Contracts\Auth\Guard;
+use Illuminate\Contracts\Auth\PasswordBroker;
 use Illuminate\Foundation\Auth\ResetsPasswords;
 use Illuminate\Foundation\Auth\ResetsPasswords;
 
 
 class PasswordController extends Controller {
 class PasswordController extends Controller {
@@ -18,4 +20,19 @@ class PasswordController extends Controller {
 
 
 	use ResetsPasswords;
 	use ResetsPasswords;
 
 
+	/**
+	 * Create a new password controller instance.
+	 *
+	 * @param  Guard  $auth
+	 * @param  PasswordBroker  $passwords
+	 * @return void
+	 */
+	public function __construct(Guard $auth, PasswordBroker $passwords)
+	{
+		$this->auth = $auth;
+		$this->passwords = $passwords;
+
+		$this->middleware('guest');
+	}
+
 }
 }