Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 614570f

Browse files
committed
Adding a new interface and implementing it
1 parent 2e69236 commit 614570f

File tree

3 files changed

+23
-11
lines changed

3 files changed

+23
-11
lines changed

lib/internal/Magento/Framework/Image/Adapter/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
namespace Magento\Framework\Image\Adapter;
77

8-
class Config implements \Magento\Framework\Image\Adapter\ConfigInterface
8+
class Config implements ConfigInterface, UploadConfigInterface
99
{
1010
const XML_PATH_IMAGE_ADAPTER = 'dev/image/default_adapter';
1111

lib/internal/Magento/Framework/Image/Adapter/ConfigInterface.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,4 @@ public function getAdapterAlias();
2020
* @return array
2121
*/
2222
public function getAdapters();
23-
24-
/**
25-
* @return int
26-
*/
27-
public function getMaxWidth();
28-
29-
/**
30-
* @return int
31-
*/
32-
public function getMaxHeight();
3323
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
namespace Magento\Framework\Image\Adapter;
7+
8+
/**
9+
* Interface UploadConfigInterface
10+
*/
11+
interface UploadConfigInterface
12+
{
13+
/**
14+
* @return int
15+
*/
16+
public function getMaxWidth();
17+
18+
/**
19+
* @return int
20+
*/
21+
public function getMaxHeight();
22+
}

0 commit comments

Comments
 (0)