7
7
8
8
namespace Magento \Catalog \Model \Product \Option \Type \File ;
9
9
10
+ use Magento \Framework \App \Config \ScopeConfigInterface ;
10
11
use Magento \Framework \App \ObjectManager ;
11
12
use Magento \Framework \App \Request \Http as Request ;
13
+ use Magento \Framework \Exception \FileSystemException ;
14
+ use Magento \Framework \File \Size ;
15
+ use Magento \Framework \Filesystem ;
16
+ use Magento \Framework \HTTP \Adapter \FileTransferFactory ;
12
17
use Magento \Framework \Math \Random ;
18
+ use Magento \Framework \Validator \File \IsImage ;
13
19
14
20
/**
15
21
* Request Aware Validator to replace use of $_SERVER super global.
@@ -24,21 +30,21 @@ class RequestAwareValidatorFile extends ValidatorFile
24
30
/**
25
31
* Constructor method
26
32
*
27
- * @param \Magento\Framework\App\Config\ ScopeConfigInterface $scopeConfig
28
- * @param \Magento\Framework\ Filesystem $filesystem
29
- * @param \Magento\Framework\File\ Size $fileSize
30
- * @param \Magento\Framework\HTTP\Adapter\ FileTransferFactory $httpFactory
31
- * @param \Magento\Framework\Validator\File\ IsImage $isImageValidator
33
+ * @param ScopeConfigInterface $scopeConfig
34
+ * @param Filesystem $filesystem
35
+ * @param Size $fileSize
36
+ * @param FileTransferFactory $httpFactory
37
+ * @param IsImage $isImageValidator
32
38
* @param Random|null $random
33
39
* @param Request|null $request
34
- * @throws \Magento\Framework\Exception\ FileSystemException
40
+ * @throws FileSystemException
35
41
*/
36
42
public function __construct (
37
- \ Magento \ Framework \ App \ Config \ ScopeConfigInterface $ scopeConfig ,
38
- \ Magento \ Framework \ Filesystem $ filesystem ,
39
- \ Magento \ Framework \ File \ Size $ fileSize ,
40
- \ Magento \ Framework \ HTTP \ Adapter \ FileTransferFactory $ httpFactory ,
41
- \ Magento \ Framework \ Validator \ File \ IsImage $ isImageValidator ,
43
+ ScopeConfigInterface $ scopeConfig ,
44
+ Filesystem $ filesystem ,
45
+ Size $ fileSize ,
46
+ FileTransferFactory $ httpFactory ,
47
+ IsImage $ isImageValidator ,
42
48
Random $ random = null ,
43
49
Request $ request = null
44
50
) {
0 commit comments