forked from zendframework/zend-file
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathValidatorPluginManager.php
86 lines (82 loc) · 3.72 KB
/
ValidatorPluginManager.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
namespace Zend\File\Transfer\Adapter;
use Zend\Validator\File;
use Zend\Validator\ValidatorPluginManager as BaseManager;
/**
* @deprecated since 2.7.0, and scheduled for removal with 3.0.0
*/
class ValidatorPluginManager extends BaseManager
{
protected $defaultFileValidationAliases = [
'count' => File\Count::class,
'Count' => File\Count::class,
'crc32' => File\Crc32::class,
'Crc32' => File\Crc32::class,
'CRC32' => File\Crc32::class,
'excludeextension' => File\ExcludeExtension::class,
'excludeExtension' => File\ExcludeExtension::class,
'ExcludeExtension' => File\ExcludeExtension::class,
'excludemimetype' => File\ExcludeMimeType::class,
'excludeMimeType' => File\ExcludeMimeType::class,
'ExcludeMimeType' => File\ExcludeMimeType::class,
'exists' => File\Exists::class,
'Exists' => File\Exists::class,
'extension' => File\Extension::class,
'Extension' => File\Extension::class,
'filessize' => File\FilesSize::class,
'filesSize' => File\FilesSize::class,
'FilesSize' => File\FilesSize::class,
'hash' => File\Hash::class,
'Hash' => File\Hash::class,
'imagesize' => File\ImageSize::class,
'imageSize' => File\ImageSize::class,
'ImageSize' => File\ImageSize::class,
'iscompressed' => File\IsCompressed::class,
'isCompressed' => File\IsCompressed::class,
'IsCompressed' => File\IsCompressed::class,
'isimage' => File\IsImage::class,
'isImage' => File\IsImage::class,
'IsImage' => File\IsImage::class,
'md5' => File\Md5::class,
'Md5' => File\Md5::class,
'MD5' => File\Md5::class,
'mimetype' => File\MimeType::class,
'mimeType' => File\MimeType::class,
'MimeType' => File\MimeType::class,
'notexists' => File\NotExists::class,
'notExists' => File\NotExists::class,
'NotExists' => File\NotExists::class,
'sha1' => File\Sha1::class,
'Sha1' => File\Sha1::class,
'SHA1' => File\Sha1::class,
'size' => File\Size::class,
'Size' => File\Size::class,
'upload' => File\Upload::class,
'Upload' => File\Upload::class,
'wordcount' => File\WordCount::class,
'wordCount' => File\WordCount::class,
'WordCount' => File\WordCount::class,
];
/**
* Constructor
*
* Merges default aliases pertinent to this plugin manager with those
* defined in the parent filter plugin manager.
*
* @param null|\Zend\ServiceManager\ConfigInterface|\Interop\Container\ContainerInterface $configOrContainerInstance
* @param array $v3config If $configOrContainerInstance is a container, this
* value will be passed to the parent constructor.
*/
public function __construct($configOrContainerInstance = null, array $v3config = [])
{
$this->aliases = array_merge($this->defaultFileValidationAliases, $this->aliases);
parent::__construct($configOrContainerInstance, $v3config);
}
}