docs: improvements to intro and basics chapters (#8956)

This commit is contained in:
Shahed Nasser
2024-09-03 17:34:07 +03:00
committed by GitHub
parent 7e278bef76
commit e9fce4c5c2
11 changed files with 53 additions and 29 deletions
@@ -4,13 +4,13 @@ export const metadata = {
# {metadata.title}
In this chapter, youll learn about Medusas Medusa container and how to use it.
In this chapter, youll learn about the Medusa container and how to use it.
## What is the Medusa container?
The Medusa container holds all resources registered in the Medusa application. You have access to it in your customizations.
The Medusa container holds all resources registered in the Medusa application, such as services.
You use the Medusa container to resolve resources, such as services.
In your customizations, you use the Medusa container to resolve these resources and use their functionalities.
For example, in a custom API route you can resolve any service registered in the Medusa application using the `scope.resolve` method of the `MedusaRequest` parameter: