Skip to content

Commit 25ef2dc

Browse files
committed
docs: change Filters::$methods keys to uppercase
1 parent a6e5ffa commit 25ef2dc

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

app/Config/Filters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class Filters extends BaseConfig
5050
* particular HTTP method (GET, POST, etc.).
5151
*
5252
* Example:
53-
* 'post' => ['foo', 'bar']
53+
* 'POST' => ['foo', 'bar']
5454
*
5555
* If you use this, you should disable auto-routing because auto-routing
5656
* permits any HTTP method to access a controller. Accessing the controller

user_guide_src/source/incoming/filters/008.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ class Filters extends BaseConfig
99
// ...
1010

1111
public array $methods = [
12-
'post' => ['invalidchars', 'csrf'],
13-
'get' => ['csrf'],
12+
'POST' => ['invalidchars', 'csrf'],
13+
'GET' => ['csrf'],
1414
];
1515

1616
// ...

user_guide_src/source/installation/upgrade_415/001.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ class Filters extends BaseConfig
99
// ...
1010

1111
public $methods = [
12-
'get' => ['csrf'],
13-
'post' => ['csrf'],
12+
'GET' => ['csrf'],
13+
'POST' => ['csrf'],
1414
];
1515
// ...
1616
}

user_guide_src/source/libraries/security/009.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
class Filters extends BaseConfig
88
{
99
public $methods = [
10-
'get' => ['csrf'],
11-
'post' => ['csrf'],
10+
'GET' => ['csrf'],
11+
'POST' => ['csrf'],
1212
];
1313

1414
// ...

user_guide_src/source/libraries/throttler/004.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class Filters extends BaseConfig
88
{
99
public $methods = [
10-
'post' => ['throttle'],
10+
'POST' => ['throttle'],
1111
];
1212

1313
// ...

user_guide_src/source/tutorial/create_news_items/001.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Filters extends BaseConfig
99
// ...
1010

1111
public $methods = [
12-
'post' => ['csrf'],
12+
'POST' => ['csrf'],
1313
];
1414

1515
// ...

0 commit comments

Comments
 (0)