Skip to content

Commit

Permalink
Merge branch 't/5ac15815'
Browse files Browse the repository at this point in the history
  • Loading branch information
nickolasburr committed Oct 31, 2019
2 parents 5ac1581 + a861599 commit 6ff4336
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 26 deletions.
@@ -1,24 +1,24 @@
<?php
/**
* ImageResizerInterface.php
* ImageManagementInterface.php
*
* NOTICE OF LICENSE
*
* This source file is subject to the Aurora Extensions EULA,
* which is bundled with this package in the file LICENSE.txt.
* This source file is subject to the MIT License, which
* is bundled with this package in the file LICENSE.txt.
*
* It is also available on the Internet at the following URL:
* https://docs.auroraextensions.com/magento/extensions/2.x/simplereturns/LICENSE.txt
* https://docs.auroraextensions.com/magento/extensions/2.x/imageprocessor/LICENSE.txt
*
* @package AuroraExtensions_SimpleReturns
* @package AuroraExtensions_ImageProcessor
* @copyright Copyright (C) 2019 Aurora Extensions <support@auroraextensions.com>
* @license Aurora Extensions EULA
* @license MIT License
*/
declare(strict_types=1);

namespace AuroraExtensions\ImageResizer\Model;
namespace AuroraExtensions\ImageProcessor\Api;

interface ImageResizerInterface
interface ImageManagementInterface
{
/** @constant string MEDIA_PATH */
public const MEDIA_PATH = '/resized/';
Expand Down
11 changes: 6 additions & 5 deletions Model/ImageResizer.php → Model/ImageProcessor.php
@@ -1,23 +1,24 @@
<?php
/**
* ImageResizer.php
* ImageProcessor.php
*
* NOTICE OF LICENSE
*
* This source file is subject to the MIT License, which
* is bundled with this package in the file LICENSE.txt.
*
* It is also available on the Internet at the following URL:
* https://docs.auroraextensions.com/magento/extensions/2.x/imageresizer/LICENSE.txt
* https://docs.auroraextensions.com/magento/extensions/2.x/imageprocessor/LICENSE.txt
*
* @package AuroraExtensions_ImageResizer
* @package AuroraExtensions_ImageProcessor
* @copyright Copyright (C) 2019 Aurora Extensions <support@auroraextensions.com>
* @license MIT License
*/
declare(strict_types=1);

namespace AuroraExtensions\ImageResizer\Model;
namespace AuroraExtensions\ImageProcessor\Model;

use AuroraExtensions\ImageProcessor\Api\ImageManagementInterface;
use Magento\Framework\{
App\Filesystem\DirectoryList,
Filesystem,
Expand All @@ -28,7 +29,7 @@
};
use Magento\Store\Model\StoreManagerInterface;

class ImageResizer implements ImageResizerInterface
class ImageProcessor implements ImageManagementInterface
{
/** @property Filesystem $filesystem */
protected $filesystem;
Expand Down
4 changes: 2 additions & 2 deletions README.md
@@ -1,9 +1,9 @@
# AuroraExtensions\_ImageResizer
# AuroraExtensions\_ImageProcessor

Crop, resize, and scale images in Magento.

## Installation

```
composer require auroraextensions/imageresizer
composer require auroraextensions/imageprocessor
```
4 changes: 2 additions & 2 deletions composer.json
@@ -1,5 +1,5 @@
{
"name": "auroraextensions/imageresizer",
"name": "auroraextensions/imageprocessor",
"description": "Crop, resize, and scale images in Magento.",
"type": "magento2-module",
"license": "MIT",
Expand All @@ -23,7 +23,7 @@
"registration.php"
],
"psr-4": {
"AuroraExtensions\\ImageResizer\\": ""
"AuroraExtensions\\ImageProcessor\\": ""
}
}
}
6 changes: 3 additions & 3 deletions etc/di.xml
Expand Up @@ -9,13 +9,13 @@
* is bundled with this package in the file LICENSE.txt.
*
* It is also available on the Internet at the following URL:
* https://docs.auroraextensions.com/magento/extensions/2.x/imageresizer/LICENSE.txt
* https://docs.auroraextensions.com/magento/extensions/2.x/imageprocessor/LICENSE.txt
*
* @package AuroraExtensions_ImageResizer
* @package AuroraExtensions_ImageProcessor
* @copyright Copyright (C) 2019 Aurora Extensions <support@auroraextensions.com>
* @license MIT License
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<preference for="AuroraExtensions\ImageResizer\Model\ImageResizerInterface" type="AuroraExtensions\ImageResizer\Model\ImageResizer"/>
<preference for="AuroraExtensions\ImageProcessor\Api\ImageManagementInterface" type="AuroraExtensions\ImageProcessor\Model\ImageProcessor"/>
</config>
6 changes: 3 additions & 3 deletions etc/module.xml
Expand Up @@ -9,13 +9,13 @@
* is bundled with this package in the file LICENSE.txt.
*
* It is also available on the Internet at the following URL:
* https://docs.auroraextensions.com/magento/extensions/2.x/imageresizer/LICENSE.txt
* https://docs.auroraextensions.com/magento/extensions/2.x/imageprocessor/LICENSE.txt
*
* @package AuroraExtensions_ImageResizer
* @package AuroraExtensions_ImageProcessor
* @copyright Copyright (C) 2019 Aurora Extensions <support@auroraextensions.com>
* @license MIT License
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="AuroraExtensions_ImageResizer" setup_version="1.0.0"></module>
<module name="AuroraExtensions_ImageProcessor" setup_version="1.0.0"></module>
</config>
6 changes: 3 additions & 3 deletions registration.php
Expand Up @@ -8,16 +8,16 @@
* is bundled with this package in the file LICENSE.txt.
*
* It is also available on the Internet at the following URL:
* https://docs.auroraextensions.com/magento/extensions/2.x/imageresizer/LICENSE.txt
* https://docs.auroraextensions.com/magento/extensions/2.x/imageprocessor/LICENSE.txt
*
* @package AuroraExtensions_ImageResizer
* @package AuroraExtensions_ImageProcessor
* @copyright Copyright (C) 2019 Aurora Extensions <support@auroraextensions.com>
* @license MIT License
*/
use Magento\Framework\Component\ComponentRegistrar;

ComponentRegistrar::register(
ComponentRegistrar::MODULE,
'AuroraExtensions_ImageResizer',
'AuroraExtensions_ImageProcessor',
__DIR__
);

0 comments on commit 6ff4336

Please sign in to comment.