Remove Middleware suffix

This commit is contained in:
Toby Zerner 2015-02-26 12:45:44 +10:30
parent f2fe0a2e1d
commit b4f3148e30
4 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ use Flarum\Core\Models\AccessToken;
use Flarum\Core\Support\Actor;
use Closure;
class LoginWithHeaderMiddleware
class LoginWithHeader
{
protected $actor;

View File

@ -9,7 +9,7 @@ $action = function ($class) {
};
};
Route::group(['prefix' => 'api', 'middleware' => 'Flarum\Api\Middleware\LoginWithHeaderMiddleware'], function () use ($action) {
Route::group(['prefix' => 'api', 'middleware' => 'Flarum\Api\Middleware\LoginWithHeader'], function () use ($action) {
Route::post('token', [
'as' => 'flarum.api.token',

View File

@ -5,7 +5,7 @@ use Flarum\Core\Models\AccessToken;
use Auth;
use Closure;
class LoginWithCookieMiddleware
class LoginWithCookie
{
protected $actor;

View File

@ -9,7 +9,7 @@ $action = function ($class) {
};
};
Route::group(['middleware' => 'Flarum\Web\Middleware\LoginWithCookieMiddleware'], function () use ($action) {
Route::group(['middleware' => 'Flarum\Web\Middleware\LoginWithCookie'], function () use ($action) {
Route::get('/', [
'as' => 'flarum.index',