Skip to content

Commit 1c0a339

Browse files
committed
Composer update
1 parent 6fc5e59 commit 1c0a339

File tree

7 files changed

+23
-17
lines changed

7 files changed

+23
-17
lines changed

Block/Adminhtml/Category/Tab/Product.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,22 @@
55
* @category MageVision
66
* @package MageVision_AdminCategoryProductThumbnail
77
* @author MageVision Team
8-
* @copyright Copyright (c) 2018 MageVision (http://www.magevision.com)
8+
* @copyright Copyright (c) 2019 MageVision (http://www.magevision.com)
99
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
1010
*/
11+
declare(strict_types=1);
12+
1113
namespace MageVision\AdminCategoryProductThumbnail\Block\Adminhtml\Category\Tab;
1214

1315
use MageVision\AdminCategoryProductThumbnail\Block\Adminhtml\Category\Tab\Product\Grid\Renderer\Image;
16+
use Magento\Framework\Data\Collection;
1417

1518
class Product extends \Magento\Catalog\Block\Adminhtml\Category\Tab\Product
1619
{
1720
/**
1821
* Set collection object adding product thumbnail
1922
*
20-
* @param \Magento\Framework\Data\Collection $collection
23+
* @param Collection $collection
2124
* @return void
2225
*/
2326
public function setCollection($collection)
@@ -28,9 +31,9 @@ public function setCollection($collection)
2831

2932
/**
3033
* add column image with a custom renderer and after column entity_id
31-
* @return Extended
34+
* @return Product
3235
*/
33-
protected function _prepareColumns()
36+
protected function _prepareColumns(): Product
3437
{
3538
parent::_prepareColumns();
3639
$this->addColumnAfter(

Block/Adminhtml/Category/Tab/Product/Grid/Renderer/Image.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,17 @@
55
* @category MageVision
66
* @package MageVision_AdminCategoryProductThumbnail
77
* @author MageVision Team
8-
* @copyright Copyright (c) 2018 MageVision (http://www.magevision.com)
8+
* @copyright Copyright (c) 2019 MageVision (http://www.magevision.com)
99
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
1010
*/
11+
declare(strict_types=1);
12+
1113
namespace MageVision\AdminCategoryProductThumbnail\Block\Adminhtml\Category\Tab\Product\Grid\Renderer;
1214

1315
use Magento\Backend\Block\Widget\Grid\Column\Renderer\AbstractRenderer;
1416
use Magento\Backend\Block\Context;
1517
use Magento\Catalog\Helper\Image as ImageHelper;
18+
use Magento\Framework\DataObject;
1619

1720
class Image extends AbstractRenderer
1821
{
@@ -39,10 +42,10 @@ public function __construct(
3942
/**
4043
* Renders grid column
4144
*
42-
* @param \Magento\Framework\DataObject $row
45+
* @param DataObject $row
4346
* @return string
4447
*/
45-
public function render(\Magento\Framework\DataObject $row)
48+
public function render(DataObject $row): string
4649
{
4750
$image = 'product_listing_thumbnail';
4851
$imageUrl = $this->imageHelper->init($row, $image)->getUrl();

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The Admin Category Product Thumbnail extension is a simple but really useful ext
1515
* 100% open source
1616

1717
## Compatibility
18-
Magento Community Edition 2.0 - 2.1 - 2.2 - 2.3
18+
Magento Community Edition 2.3
1919

2020
## Installing the Extension
2121
* Backup your web directory and store database

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"description": "Admin Category Product Thumbnail Extension for Magento 2",
44
"keywords": ["Magento 2", "Admin Category", "Product Thumbnail", "Products in Category", "Magento Backend"],
55
"require": {
6-
"php": "~5.5.0|~5.6.0|~7.0.0|~7.1.0|~7.2.0",
7-
"magento/module-backend": "100.0.*|100.1.*|100.2.*|101.0.*",
8-
"magento/module-catalog": "100.0.*|101.0.*|102.0.*|103.0.*",
9-
"magento/framework": "100.0.*|100.1.*|101.0.*|102.0.*"
6+
"php": "~7.1.3||~7.2.0||~7.3.0",
7+
"magento/framework": "102.0.*",
8+
"magento/module-backend": "101.0.*",
9+
"magento/module-catalog": "103.0.*"
1010
},
1111
"type": "magento2-module",
12-
"version": "2.3.0",
12+
"version": "2.3.1",
1313
"license": [
1414
"OSL-3.0",
1515
"AFL-3.0"

etc/di.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @category MageVision
77
* @package MageVision_AdminCategoryProductThumbnail
88
* @author MageVision Team
9-
* @copyright Copyright (c) 2018 MageVision (http://www.magevision.com)
9+
* @copyright Copyright (c) 2019 MageVision (http://www.magevision.com)
1010
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
1111
*/
1212
-->

etc/module.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
* @category MageVision
77
* @package MageVision_AdminCategoryProductThumbnail
88
* @author MageVision Team
9-
* @copyright Copyright (c) 2018 MageVision (http://www.magevision.com)
9+
* @copyright Copyright (c) 2019 MageVision (http://www.magevision.com)
1010
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
1111
*/
1212
-->
1313
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
14-
<module name="MageVision_AdminCategoryProductThumbnail" setup_version="2.3.0">
14+
<module name="MageVision_AdminCategoryProductThumbnail">
1515
<sequence>
1616
<module name="Magento_Catalog"/>
1717
</sequence>

registration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @category MageVision
66
* @package MageVision_AdminCategoryProductThumbnail
77
* @author MageVision Team
8-
* @copyright Copyright (c) 2018 MageVision (http://www.magevision.com)
8+
* @copyright Copyright (c) 2019 MageVision (http://www.magevision.com)
99
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
1010
*/
1111
\Magento\Framework\Component\ComponentRegistrar::register(

0 commit comments

Comments
 (0)