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/backend/behaviors.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -332,6 +332,10 @@ If we were to represent the behavior of choosing the correct outlet adapter in P
332
332
333
333
This process of choosing the right adapter based on the information of the context and the requested interface implements the design pattern of an abstract factory.
334
334
335
+
```{hint} The notation `ISchuko(context)` is a shortcut for `getAdapter(context, ISchuko)`.
336
+
It executes exactly the same logic behind the scenes with the same result.
337
+
```
338
+
335
339
Similarly, using the {ref}`behavior code example <behavior-code-example>` above:
336
340
337
341
- You would call an abstract factory with `getAdapter(context, IPriceBehavior)` to get an adapter, `price_for_context`.
0 commit comments