Skip to content

Commit 1d3af81

Browse files
committed
docs: update auth_actions.md
1 parent 15267e7 commit 1d3af81

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/auth_actions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Shield ships with two actions you can use, and makes it simple for you to define
1717
Actions are setup in the `Auth` config file, with the `$actions` variable.
1818

1919
```php
20-
public $actions = [
20+
public array $actions = [
2121
'register' => null,
2222
'login' => null,
2323
];
@@ -26,9 +26,9 @@ public $actions = [
2626
To define an action to happen you will specify the class name as the value for the appropriate task:
2727

2828
```php
29-
public $actions = [
30-
'register' => 'CodeIgniter\Shield\Authentication\Actions\EmailActivator',
31-
'login' => 'CodeIgniter\Shield\Authentication\Actions\Email2FA',
29+
public array $actions = [
30+
'register' => \CodeIgniter\Shield\Authentication\Actions\EmailActivator::class,
31+
'login' => \CodeIgniter\Shield\Authentication\Actions\Email2FA::class,
3232
];
3333
```
3434

0 commit comments

Comments
 (0)