Skip to content

Commit fc29a8b

Browse files
Merge pull request #138 from jlnarvaez/patch-1
Add visibility to __construct method in example
2 parents 01ca366 + 0cbe3e3 commit fc29a8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/development/components/factories.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ You can get the singleton instance of a factory for a specific model using [depe
7676
The following example shows a class getting the `BlockFactory` instance through the constructor:
7777

7878
```php
79-
function __construct ( \Magento\Cms\Model\BlockFactory $blockFactory) {
79+
public function __construct ( \Magento\Cms\Model\BlockFactory $blockFactory) {
8080
$this->blockFactory = $blockFactory;
8181
}
8282
```

0 commit comments

Comments
 (0)