Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 988db72

Browse files
committed
docs: suggest non-facade usage until class name fix
1 parent d2c6dc9 commit 988db72

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ A Magento 2 API Object Oriented wrapper for a Laravel application.
2929
- [Products](#products)
3030
- [Schema](#schema)
3131
- [Source Items](#source-items)
32-
- [Custom modules](#custom modules)
32+
- [Custom Modules](#custom-modules)
3333

3434

3535
## Installation
@@ -60,9 +60,10 @@ MAGENTO_API_VERSION="V1"
6060

6161
Example:
6262
```php
63-
use Magento;
63+
use Grayloon\Magento\Magento;
6464

65-
$response = Magento::api('products')->all();
65+
$magento = new Magento();
66+
$response = $magento->api('products')->all();
6667

6768
$response->body() : string;
6869
$response->json() : array|mixed;
@@ -223,7 +224,8 @@ Get info about a product by the product SKU:
223224
Magento::api('products')->show($sku);
224225
```
225226

226-
### Custom modules
227+
<a id="custom-modules"></a>
228+
### Custom Modules
227229
Magento modules can have their own API endpoints.
228230
For example:
229231
```xml

0 commit comments

Comments
 (0)