File tree Expand file tree Collapse file tree 4 files changed +19
-6
lines changed
app/code/Magento/MediaGallery/Model/Directory Expand file tree Collapse file tree 4 files changed +19
-6
lines changed Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+ declare (strict_types=1 );
6
7
7
8
namespace Magento \MediaGallery \Model \Directory ;
8
9
9
10
use Magento \Framework \Config \DataInterface ;
10
11
11
12
/**
12
- * Config of Magento Media Gallery Directory.
13
+ * Media gallery directory config
13
14
*/
14
15
class Config
15
16
{
Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+ declare (strict_types=1 );
7
+
6
8
namespace Magento \MediaGallery \Model \Directory \Config ;
7
9
8
10
use Magento \Framework \Config \ConverterInterface ;
9
11
10
12
/**
11
- * Class Converter
13
+ * Media gallery directory config converter
12
14
*/
13
15
class Converter implements ConverterInterface
14
16
{
15
17
/**
16
18
* Blacklist tag name
17
19
*/
18
- private CONST BLACKLIST_TAG_NAME = 'blacklist ' ;
20
+ private const BLACKLIST_TAG_NAME = 'blacklist ' ;
19
21
20
22
/**
21
23
* Patterns tag name
22
24
*/
23
- private CONST PATTERNS_TAG_NAME = 'patterns ' ;
25
+ private const PATTERNS_TAG_NAME = 'patterns ' ;
24
26
25
27
/**
26
28
* Pattern tag name
27
29
*/
28
- private CONST PATTERN_TAG_NAME = 'pattern ' ;
30
+ private const PATTERN_TAG_NAME = 'pattern ' ;
29
31
30
32
/**
31
33
* Convert dom node to array
32
34
*
33
35
* @param \DOMDocument $source
34
36
* @return array
35
37
*/
36
- public function convert ($ source ) : array
38
+ public function convert ($ source ): array
37
39
{
38
40
$ result = [];
39
41
Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+ declare (strict_types=1 );
7
+
6
8
namespace Magento \MediaGallery \Model \Directory \Config ;
7
9
8
10
use Magento \Framework \App \Area ;
12
14
use Magento \Framework \Config \ValidationStateInterface ;
13
15
use Magento \Framework \Config \Dom ;
14
16
17
+ /**
18
+ * Media gallery directory config reader
19
+ */
15
20
class Reader extends Filesystem implements ReaderInterface
16
21
{
17
22
/**
Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+ declare (strict_types=1 );
7
+
6
8
namespace Magento \MediaGallery \Model \Directory \Config ;
7
9
8
10
use Magento \Framework \Module \Dir ;
9
11
use Magento \Framework \Module \Dir \Reader ;
10
12
use Magento \Framework \Config \SchemaLocatorInterface ;
11
13
14
+ /**
15
+ * Media gallery directory config schema locator
16
+ */
12
17
class SchemaLocator implements SchemaLocatorInterface
13
18
{
14
19
/**
You can’t perform that action at this time.
0 commit comments