File tree Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 9
9
10
10
use Magento \Framework \View \Element \Block \ArgumentInterface ;
11
11
use Opengento \Document \Api \Data \DocumentInterface ;
12
- use Opengento \Document \Model \Document \Helper \ImageBuilder ;
12
+ use Opengento \Document \Model \Document \Filesystem \ImageBuilder ;
13
13
use Opengento \Document \Model \File \Image as ImageData ;
14
14
15
15
final class Image implements ArgumentInterface
Original file line number Diff line number Diff line change 9
9
10
10
use Magento \Framework \View \Element \Block \ArgumentInterface ;
11
11
use Opengento \Document \Api \Data \DocumentInterface ;
12
- use Opengento \Document \Model \Document \Helper \Url as UrlHelper ;
12
+ use Opengento \Document \Model \Document \Filesystem \Url as UrlBuilder ;
13
13
14
14
final class Url implements ArgumentInterface
15
15
{
16
16
/**
17
- * @var UrlHelper
17
+ * @var UrlBuilder
18
18
*/
19
- private $ urlHelper ;
19
+ private $ urlBuilder ;
20
20
21
21
public function __construct (
22
- UrlHelper $ urlHelper
22
+ UrlBuilder $ urlBuilder
23
23
) {
24
- $ this ->urlHelper = $ urlHelper ;
24
+ $ this ->urlBuilder = $ urlBuilder ;
25
25
}
26
26
27
27
public function getFileUrl (DocumentInterface $ document ): string
28
28
{
29
- return $ this ->urlHelper ->getFileUrl ($ document );
29
+ return $ this ->urlBuilder ->getFileUrl ($ document );
30
30
}
31
31
}
Original file line number Diff line number Diff line change 25
25
"suggest" : {
26
26
"opengento/module-document-product-link" : " This module aims to help merchants to link their documents to products in Magento 2." ,
27
27
"opengento/module-document-product-search" : " This module aims to make documents searchable with product keywords in Magento 2." ,
28
- "opengento/module-document-search" : " This module aims to make documents searchable for customers in Magento 2."
28
+ "opengento/module-document-search" : " This module aims to make documents searchable for customers in Magento 2." ,
29
+ "opengento/module-document-restrict" : " This module aims to restrict documents by type in Magento 2."
29
30
},
30
31
"license" : [
31
32
" MIT"
Original file line number Diff line number Diff line change 37
37
<argument name =" modifiers" xsi : type =" array" >
38
38
<item name =" select" xsi : type =" object" >Opengento\Document\Model\Document\Collection\SelectModifier</item >
39
39
<item name =" sorter" xsi : type =" object" >Opengento\DocumentWidget\Model\Document\Collection\SorterModifier</item >
40
- <item name =" visibility" xsi : type =" object" >Opengento\Document\Model\Document\Collection\FrontendVisibilityModifier </item >
40
+ <item name =" visibility" xsi : type =" object" >Opengento\Document\Model\Document\Collection\VisibilityModifier </item >
41
41
</argument >
42
42
</arguments >
43
43
</type >
You can’t perform that action at this time.
0 commit comments