Skip to content

Commit da7c919

Browse files
loic425diimpp
andcommitted
Apply suggestions from code review
Co-authored-by: Dmitri Perunov <diimpp@gmail.com>
1 parent bc11d71 commit da7c919

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

docs/cookbook/ddd_architecture/basic_operations.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ And then we create the "update" operation on our BookResource.
138138
use App\BookStore\Infrastructure\Sylius\State\Processor\CreateBookProcessor;
139139
use App\BookStore\Infrastructure\Symfony\Form\BookResourceType;
140140
use Sylius\Resource\Metadata\Create;
141+
use Sylius\Resource\Model\ResourceInterface;
141142
// ...
142143

143144
#[AsResource(

docs/cookbook/ddd_architecture/grid.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class GridPageResolver
138138

139139
### Create the BookGridProvider
140140

141-
First we need to write the `BookGridProvider`.
141+
First we need to create the `BookGridProvider`.
142142

143143
```php
144144
// src/BookStore/Infrastructure/Sylius/Grid/BookGridProvider.php
@@ -259,7 +259,10 @@ And then we create the "update" operation on our BookResource.
259259

260260
// ...
261261
use App\BookStore\Infrastructure\Sylius\Grid\BookGrid;
262+
use App\BookStore\Infrastructure\Symfony\Form\BookResourceType;
263+
use Sylius\Resource\Metadata\AsResource;
262264
use Sylius\Resource\Metadata\Index;
265+
use Sylius\Resource\Model\ResourceInterface;
263266
// ...
264267

265268
#[AsResource(
@@ -392,7 +395,4 @@ final readonly class BookGridProvider implements DataProviderInterface
392395
// ...
393396
}
394397
}
395-
396398
```
397-
398-

0 commit comments

Comments
 (0)