Skip to content

Commit

Permalink
chore: use shorthand for constructor services
Browse files Browse the repository at this point in the history
  • Loading branch information
ambroisemaupate committed Feb 7, 2024
1 parent c5cfb38 commit 36ffd5a
Showing 1 changed file with 5 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,13 @@

final class GetWebResponseByPathController extends AbstractController
{
private RequestStack $requestStack;
private PathResolverInterface $pathResolver;
private WebResponseDataTransformerInterface $webResponseDataTransformer;
private IriConverterInterface $iriConverter;
private PreviewResolverInterface $previewResolver;

public function __construct(
RequestStack $requestStack,
PathResolverInterface $pathResolver,
WebResponseDataTransformerInterface $webResponseDataTransformer,
IriConverterInterface $iriConverter,
PreviewResolverInterface $previewResolver
private readonly RequestStack $requestStack,
private readonly PathResolverInterface $pathResolver,
private readonly WebResponseDataTransformerInterface $webResponseDataTransformer,
private readonly IriConverterInterface $iriConverter,
private readonly PreviewResolverInterface $previewResolver
) {
$this->requestStack = $requestStack;
$this->pathResolver = $pathResolver;
$this->webResponseDataTransformer = $webResponseDataTransformer;
$this->iriConverter = $iriConverter;
$this->previewResolver = $previewResolver;
}

public function __invoke(): ?WebResponseInterface
Expand Down

0 comments on commit 36ffd5a

Please sign in to comment.