Skip to content

Commit

Permalink
Update file-upload.md (#1949)
Browse files Browse the repository at this point in the history
removed not needed constructor parameter
  • Loading branch information
Corepex committed May 9, 2024
1 parent 1f930d1 commit 1427636
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/file-upload.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ use Vich\UploaderBundle\Storage\StorageInterface;
final class SaveMediaObject implements ProcessorInterface
{
public function __construct(
#[Autowire('@api_platform.doctrine.orm.state.persist_processor')] private readonly ProcessorInterface $processor,
private readonly StorageInterface $storage
#[Autowire('@api_platform.doctrine.orm.state.persist_processor')]
private readonly ProcessorInterface $processor
) {}

public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = [])
Expand Down

0 comments on commit 1427636

Please sign in to comment.