Added middleware class headers

This commit is contained in:
James Brooks 2016-10-08 10:37:21 +01:00
parent dbc488b6b7
commit 96c0444783
9 changed files with 60 additions and 0 deletions

View File

@ -15,6 +15,12 @@ use Closure;
use Illuminate\Http\Request;
use Symfony\Component\HttpKernel\Exception\NotAcceptableHttpException;
/**
* This is the acceptable middleware class.
*
* @author Graham Campbell <james@alt-three.com>
* @author James Brooks <james@alt-three.com>
*/
class Acceptable
{
/**

View File

@ -16,6 +16,13 @@ use Illuminate\Contracts\Auth\Guard;
use Illuminate\Http\Request;
use Symfony\Component\HttpKernel\Exception\HttpException;
/**
* This is the admin middleware class.
*
* @author Joseph Cohen <joe@alt-three.com>
* @author Graham Campbell <james@alt-three.com>
* @author James Brooks <james@alt-three.com>
*/
class Admin
{
/**

View File

@ -18,6 +18,13 @@ use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illuminate\Http\Request;
use Symfony\Component\HttpKernel\Exception\HttpException;
/**
* This is the api authentication middleware class.
*
* @author Joseph Cohen <joe@alt-three.com>
* @author Graham Campbell <james@alt-three.com>
* @author James Brooks <james@alt-three.com>
*/
class ApiAuthentication
{
/**

View File

@ -16,6 +16,13 @@ use Illuminate\Contracts\Auth\Guard;
use Illuminate\Http\Request;
use Symfony\Component\HttpKernel\Exception\HttpException;
/**
* This is the authenticate middleware class.
*
* @author Joseph Cohen <joe@alt-three.com>
* @author Graham Campbell <james@alt-three.com>
* @author James Brooks <james@alt-three.com>
*/
class Authenticate
{
/**

View File

@ -16,6 +16,13 @@ use Illuminate\Config\Repository;
use Illuminate\Http\Request;
use Jenssegers\Date\Date;
/**
* This is the localize middleware class.
*
* @author James Brooks <james@alt-three.com>
* @author Joseph Cohen <joe@alt-three.com>
* @author Graham Campbell <james@alt-three.com>
*/
class Localize
{
/**

View File

@ -17,6 +17,13 @@ use Illuminate\Http\Request;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\Redirect;
/**
* This is the ready for use middleware class.
*
* @author Graham Campbell <james@alt-three.com>
* @author James Brooks <james@alt-three.com>
* @author Joseph Cohen <joe@alt-three.com>
*/
class ReadyForUse
{
/**

View File

@ -16,6 +16,13 @@ use Illuminate\Contracts\Auth\Guard;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
/**
* This is the redirect if authenticated middleware class.
*
* @author Graham Campbell <james@alt-three.com>
* @author Joseph Cohen <joe@alt-three.com>
* @author James Brooks <james@alt-three.com>
*/
class RedirectIfAuthenticated
{
/**

View File

@ -15,6 +15,12 @@ use Closure;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Redirect;
/**
* This is the subscribers configured middleware class.
*
* @author James Brooks <james@alt-three.com>
* @author Graham Campbell <james@alt-three.com>
*/
class SubscribersConfigured
{
/**

View File

@ -15,6 +15,12 @@ use Closure;
use Illuminate\Contracts\Config\Repository;
use Illuminate\Http\Request;
/**
* This is the timezone middleware class.
*
* @author James Brooks <james@alt-three.com>
* @author Graham Campbell <james@alt-three.com>
*/
class Timezone
{
/**