File tree Expand file tree Collapse file tree
docs/cookbook/ddd_architecture Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -138,6 +138,7 @@ And then we create the "update" operation on our BookResource.
138138use App\BookStore\Infrastructure\Sylius\State\Processor\CreateBookProcessor;
139139use App\BookStore\Infrastructure\Symfony\Form\BookResourceType;
140140use Sylius\Resource\Metadata\Create;
141+ use Sylius\Resource\Model\ResourceInterface;
141142// ...
142143
143144#[AsResource(
Original file line number Diff line number Diff 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// ...
261261use App\BookStore\Infrastructure\Sylius\Grid\BookGrid;
262+ use App\BookStore\Infrastructure\Symfony\Form\BookResourceType;
263+ use Sylius\Resource\Metadata\AsResource;
262264use 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-
You can’t perform that action at this time.
0 commit comments