From 971da65d60246cc43f1a2a1c553b9efe415a91d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=20Luis=20Narv=C3=A1ez?= Date: Wed, 5 Apr 2023 10:50:53 +0200 Subject: [PATCH] Add visibility to __construct method in example --- src/pages/development/components/factories.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/development/components/factories.md b/src/pages/development/components/factories.md index 1f1c307d5..2fd8991b7 100644 --- a/src/pages/development/components/factories.md +++ b/src/pages/development/components/factories.md @@ -76,7 +76,7 @@ You can get the singleton instance of a factory for a specific model using [depe The following example shows a class getting the `BlockFactory` instance through the constructor: ```php -function __construct ( \Magento\Cms\Model\BlockFactory $blockFactory) { +public function __construct ( \Magento\Cms\Model\BlockFactory $blockFactory) { $this->blockFactory = $blockFactory; } ```