Merge pull request #1273 from cachethq/setup-middleware

Don't use filters, use middleware. Closes #1269
This commit is contained in:
Graham Campbell 2015-12-23 15:38:45 +00:00
commit 27f85d941b
2 changed files with 1 additions and 11 deletions

View File

@ -40,16 +40,6 @@ class SetupController extends Controller
'redis' => 'Redis',
];
/**
* Create a new setup controller instance.
*
* @return void
*/
public function __construct()
{
$this->beforeFilter('csrf', ['only' => ['postCachet']]);
}
/**
* Returns the setup page.
*

View File

@ -27,7 +27,7 @@ class SetupRoutes
*/
public function map(Registrar $router)
{
$router->group(['middleware' => 'app.isSetup'], function ($router) {
$router->group(['middleware' => ['app.isSetup', 'csrf']], function ($router) {
$router->controller('setup', 'SetupController');
});
}