Skip to content

Commit d667168

Browse files
committed
Change docs according to suggestions
1 parent cbc2efa commit d667168

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎app/Config/Filters.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ class Filters extends BaseFilters
5353
*/
5454
public array $required = [
5555
'before' => [
56-
'forcehttps', // Force Global Secure Requests
5756
// 'requestid', // Request ID for each request
57+
'forcehttps', // Force Global Secure Requests
5858
'pagecache', // Web Page Caching
5959
],
6060
'after' => [
61-
'pagecache', // Web Page Caching
6261
// 'requestid', // Request ID for each request
62+
'pagecache', // Web Page Caching
6363
'performance', // Performance Metrics
6464
'toolbar', // Debug Toolbar
6565
],

‎user_guide_src/source/incoming/filters.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ It is added to the request's context and can be accessed via the ``request_id``
394394

395395
The ID is generated via ``bin2hex(random_bytes(16))``, so it is a 32-character hexadecimal string.
396396

397-
To enable this filter, simply un-comment the ``requestid`` alias in the ``$required['before']`` and ``$required['after']`` array in **app/Config/Filters.php**:
397+
To enable this filter, simply add/uncomment the ``requestid`` alias in the ``$required['before']`` and ``$required['after']`` array in **app/Config/Filters.php**:
398398

399399
.. literalinclude:: filters/014.php
400400

‎user_guide_src/source/incoming/filters/014.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ class Filters extends BaseConfig
99
// ...
1010
public array $required = [
1111
'before' => [
12-
'forcehttps', // Force Global Secure Requests
1312
'requestid', // Request ID for each request
13+
'forcehttps', // Force Global Secure Requests
1414
'pagecache', // Web Page Caching
1515
],
1616
'after' => [
17-
'pagecache', // Web Page Caching
1817
'requestid', // Request ID for each request
18+
'pagecache', // Web Page Caching
1919
'performance', // Performance Metrics
2020
'toolbar', // Debug Toolbar
2121
],

0 commit comments

Comments
 (0)