First Local Commit - After Clean up.
Signed-off-by: Rick Hays <rhays@haysgang.com>
This commit is contained in:
39
app/Config/Filters.php
Normal file
39
app/Config/Filters.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php namespace Config;
|
||||
|
||||
use CodeIgniter\Config\BaseConfig;
|
||||
|
||||
class Filters extends BaseConfig
|
||||
{
|
||||
// Makes reading things below nicer,
|
||||
// and simpler to change out script that's used.
|
||||
public $aliases = [
|
||||
'csrf' => \CodeIgniter\Filters\CSRF::class,
|
||||
'toolbar' => \CodeIgniter\Filters\DebugToolbar::class,
|
||||
'honeypot' => \CodeIgniter\Filters\Honeypot::class,
|
||||
'game' => \App\Filters\GameFilters::class,
|
||||
];
|
||||
|
||||
// Always applied before every request
|
||||
public $globals = [
|
||||
'before' => [
|
||||
//'honeypot',
|
||||
//'csrf',
|
||||
'game' => ['except' => 'setup'],
|
||||
],
|
||||
'after' => [
|
||||
'toolbar',
|
||||
//'honeypot'
|
||||
],
|
||||
];
|
||||
|
||||
// Works on all of a particular HTTP method
|
||||
// (GET, POST, etc) as BEFORE filters only
|
||||
// like: 'post' => ['CSRF', 'throttle'],
|
||||
public $methods = [];
|
||||
|
||||
// List filter aliases and any before/after uri patterns
|
||||
// that they should run on, like:
|
||||
// 'isLoggedIn' => ['before' => ['account/*', 'profiles/*']],
|
||||
public $filters = [];
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user