We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fcac2a commit fa4e36aCopy full SHA for fa4e36a
src/TwigComponent/doc/index.rst
@@ -405,11 +405,8 @@ normal. This example assumes you have a ``Product`` Doctrine entity and
405
#[AsTwigComponent]
406
class FeaturedProducts
407
{
408
- private ProductRepository $productRepository;
409
-
410
- public function __construct(ProductRepository $productRepository)
+ public function __construct(private ProductRepository $productRepository)
411
412
- $this->productRepository = $productRepository;
413
}
414
415
public function getProducts(): array
0 commit comments