Skip to content

Commit f93a3bb

Browse files
committed
docs: improve expression
1 parent 500a3d0 commit f93a3bb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/references/controller_filters.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44

55
!!! note
66

7-
These filters are already loaded for you by the [registrar](https://codeigniter.com/user_guide/general/configuration.html#registrars) class located at **src/Config/Registrar.php**.
7+
The filter `$aliases` that Shield provides are automatically added for you by the
8+
[Registrar](https://codeigniter.com/user_guide/general/configuration.html#registrars)
9+
class located at **src/Config/Registrar.php**. So you don't need to add in
10+
your **app/Config/Filters.php**.
811

912
The [Controller Filters](https://codeigniter.com/user_guide/incoming/filters.html) you can use to protect your routes Shield provides are:
1013

1114
```php
12-
public $aliases = [
13-
// ...
15+
$aliases = [
1416
'session' => \CodeIgniter\Shield\Filters\SessionAuth::class,
1517
'tokens' => \CodeIgniter\Shield\Filters\TokenAuth::class,
1618
'hmac' => \CodeIgniter\Shield\Filters\HmacAuth::class,

0 commit comments

Comments
 (0)