2015-03-20 18:30:45 -06:00
|
|
|
<?php
|
|
|
|
|
2015-04-19 08:52:39 +01:00
|
|
|
/*
|
|
|
|
* This file is part of Cachet.
|
|
|
|
*
|
2015-05-25 17:59:08 +01:00
|
|
|
* (c) Cachet HQ <support@cachethq.io>
|
2015-04-19 08:52:39 +01:00
|
|
|
*
|
|
|
|
* For the full copyright and license information, please view the LICENSE
|
|
|
|
* file that was distributed with this source code.
|
|
|
|
*/
|
|
|
|
|
2015-03-20 18:30:45 -06:00
|
|
|
namespace CachetHQ\Cachet\Http;
|
|
|
|
|
|
|
|
use Illuminate\Foundation\Http\Kernel as HttpKernel;
|
|
|
|
|
|
|
|
class Kernel extends HttpKernel
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The application's global HTTP middleware stack.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $middleware = [
|
2015-04-19 09:04:50 +01:00
|
|
|
'Fideloper\Proxy\TrustProxies',
|
2015-03-20 18:30:45 -06:00
|
|
|
'Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode',
|
|
|
|
'Illuminate\Cookie\Middleware\EncryptCookies',
|
|
|
|
'Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse',
|
|
|
|
'Illuminate\Session\Middleware\StartSession',
|
|
|
|
'Illuminate\View\Middleware\ShareErrorsFromSession',
|
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The application's route middleware.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $routeMiddleware = [
|
|
|
|
'auth' => 'CachetHQ\Cachet\Http\Middleware\Authenticate',
|
|
|
|
'auth.api' => 'CachetHQ\Cachet\Http\Middleware\ApiAuthenticate',
|
|
|
|
'auth.basic' => 'Illuminate\Auth\Middleware\AuthenticateWithBasicAuth',
|
|
|
|
'guest' => 'CachetHQ\Cachet\Http\Middleware\RedirectIfAuthenticated',
|
|
|
|
'csrf' => 'CachetHQ\Cachet\Http\Middleware\VerifyCsrfToken',
|
|
|
|
'admin' => 'CachetHQ\Cachet\Http\Middleware\Admin',
|
|
|
|
'login.throttling' => 'CachetHQ\Cachet\Http\Middleware\LoginThrottling',
|
|
|
|
'app.isSetup' => 'CachetHQ\Cachet\Http\Middleware\AppIsSetup',
|
|
|
|
'app.hasSetting' => 'CachetHQ\Cachet\Http\Middleware\HasSetting',
|
|
|
|
];
|
|
|
|
}
|