Skip to content

Commit 1427636

Browse files
authored
Update file-upload.md (#1949)
removed not needed constructor parameter
1 parent 1f930d1 commit 1427636

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/file-upload.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ use Vich\UploaderBundle\Storage\StorageInterface;
166166
final class SaveMediaObject implements ProcessorInterface
167167
{
168168
public function __construct(
169-
#[Autowire('@api_platform.doctrine.orm.state.persist_processor')] private readonly ProcessorInterface $processor,
170-
private readonly StorageInterface $storage
169+
#[Autowire('@api_platform.doctrine.orm.state.persist_processor')]
170+
private readonly ProcessorInterface $processor
171171
) {}
172172
173173
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = [])

0 commit comments

Comments
 (0)