You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/engines/invokable.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,13 @@ sidebarDepth: 2
4
4
5
5
# Invokable Engine
6
6
7
-
The **Invokable Engine** provides a powerful way to dynamically map incomming reuqest parameters to corresponding methods in a filter class. This mechanism enables clean, scalable filtering logic and behavior injection without requiring large **switch** or **if-else** blocks.
7
+
The **Invokable Engine** provides a powerful way to dynamically map incomming request parameters to corresponding methods in a filter class. This mechanism enables clean, scalable filtering logic and behavior injection without requiring large **switch** or **if-else** blocks.
8
8
9
9
---
10
10
11
11
## Purpose
12
12
13
-
To automatically execute soecific methods in a filter class based on the incomming request keys, Each key in the request is matched with a method of the same name in the filter class and registered in **`$filters`** property, and the method is executed with the provided value.
13
+
To automatically execute specific methods in a filter class based on the incomming request keys, Each key in the request is matched with a method of the same name in the filter class and registered in **`$filters`** property, and the method is executed with the provided value.
14
14
15
15
---
16
16
@@ -96,7 +96,7 @@ You can access not only the raw value but also the parsed operator (e.g. =, like
96
96
97
97
## Mapping Request Keys
98
98
99
-
By default, the engine attempts to match the reuqest keys directly to metch names in the filter class. However, for mode flexibility and clarity, you can define a custom map that links request keys to specific method names.
99
+
By default, the engine attempts to match the request keys directly to match names in the filter class. However, for mode flexibility and clarity, you can define a custom map that links request keys to specific method names.
100
100
101
101
This allows you to:
102
102
@@ -182,15 +182,15 @@ This ensures that the filter system remains dynamic and flexible whether or not
182
182
183
183
-**Convention over configuration:** Method names match request keys.
184
184
-**Safe execution:** Only existing methods and registered filter keys in **`$filters`** are called.
185
-
-**Flexable extension:** Add or override logic in the filter class easily.
185
+
-**Flexible extension:** Add or override logic in the filter class easily.
186
186
-**Clean query builder:** Keeps container logic slim and readable.
0 commit comments