Skip to content

Commit 21c8e20

Browse files
committed
fix: request app call
1 parent c2fefc0 commit 21c8e20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

architecture/service-container.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ The service container is available in the `Request` object and can be retrieved
4444

4545
```python
4646
def show(self, request: Request):
47-
request.app() # will return the service container
47+
request.app # will return the service container
4848
```
4949

5050
### Simple Binding
@@ -218,7 +218,7 @@ def randomFunction(view: View):
218218
print(view)
219219

220220
def show(self, request: Request):
221-
request.app().resolve(randomFunction) # Will print the View object
221+
request.app.resolve(randomFunction) # Will print the View object
222222
```
223223

224224
{% hint style="warning" %}

0 commit comments

Comments
 (0)