Skip to content

Commit b5bec77

Browse files
committed
Apply code review suggestions
1 parent 9d94ae6 commit b5bec77

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

docs/processors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ use Sylius\Resource\Model\ResourceInterface;
127127
final class BoardGameResource implements ResourceInterface
128128
```
129129

130-
Note that in that kind of operation, you can disable providing data.
130+
Note that in a delete operation, you can disable providing data.
131131
See [Disable providing data](providers.md#disable-providing-data) chapter.
132132

133133
**[Go back to the documentation's index](index.md)**

docs/providers.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
Providers retrieve data from your persistence layer.
44

55
<!-- TOC -->
6-
* [Providers](#providers)
7-
* [Default providers](#default-providers)
8-
* [Custom repository method](#custom-repository-method)
9-
* [Custom repository arguments](#custom-repository-arguments)
10-
* [Custom providers](#custom-providers)
11-
* [Disable providing data](#disable-providing-data)
6+
* [Default providers](#default-providers)
7+
* [Custom repository method](#custom-repository-method)
8+
* [Custom repository arguments](#custom-repository-arguments)
9+
* [Custom providers](#custom-providers)
10+
* [Disable providing data](#disable-providing-data)
1211
<!-- TOC -->
1312

1413
## Default providers
@@ -171,7 +170,14 @@ final class BoardGameResource implements ResourceInterface
171170

172171
namespace App\BoardGameBlog\Infrastructure\Sylius\State\Processor;
173172

173+
use App\BoardGameBlog\Application\Command\DeleteBoardGameCommand;
174+
use App\BoardGameBlog\Domain\ValueObject\BoardGameId;
175+
use App\BoardGameBlog\Infrastructure\Sylius\Resource\BoardGameResource;
176+
use App\Shared\Application\Command\CommandBusInterface;
177+
use Sylius\Resource\Context\Context;
174178
use Sylius\Resource\Context\Option\RequestOption;
179+
use Sylius\Resource\Metadata\Operation;
180+
use Sylius\Resource\State\ProcessorInterface;
175181
use Webmozart\Assert\Assert;
176182

177183
final class DeleteBoardGameProcessor implements ProcessorInterface

0 commit comments

Comments
 (0)