File tree Expand file tree Collapse file tree 4 files changed +19
-12
lines changed Expand file tree Collapse file tree 4 files changed +19
-12
lines changed Original file line number Diff line number Diff line change @@ -34,30 +34,38 @@ class ConfigSetCommand extends Command
34
34
/**#@-*/
35
35
36
36
/**
37
+ * The factory for config:set processors.
38
+ *
37
39
* @var ConfigSetProcessorFactory
38
40
*/
39
41
private $ configSetProcessorFactory ;
40
42
41
43
/**
44
+ * Scope validator.
45
+ *
42
46
* @var ValidatorInterface
43
47
*/
44
48
private $ validator ;
45
49
46
50
/**
51
+ * Scope manager.
52
+ *
47
53
* @var ScopeInterface
48
54
*/
49
55
private $ scope ;
50
56
51
57
/**
58
+ * The factory for path validator.
59
+ *
52
60
* @var PathValidatorFactory
53
61
*/
54
62
private $ pathValidatorFactory ;
55
63
56
64
/**
57
- * @param ConfigSetProcessorFactory $configSetProcessorFactory
58
- * @param ValidatorInterface $validator
59
- * @param ScopeInterface $scope
60
- * @param PathValidatorFactory $pathValidatorFactory
65
+ * @param ConfigSetProcessorFactory $configSetProcessorFactory The factory for config:set processors
66
+ * @param ValidatorInterface $validator Scope validator
67
+ * @param ScopeInterface $scope Scope manager
68
+ * @param PathValidatorFactory $pathValidatorFactory The factory for path validator
61
69
*/
62
70
public function __construct (
63
71
ConfigSetProcessorFactory $ configSetProcessorFactory ,
Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ public function __construct(Structure $structure)
31
31
* Validates the config path by config structure schema.
32
32
*
33
33
* @param string $path The config path
34
- * @return bool
35
- * @throws ValidatorException If provided path can not be validated
34
+ * @return bool The result of validation
35
+ * @throws ValidatorException If provided path is not valid
36
36
*/
37
37
public function validate ($ path )
38
38
{
Original file line number Diff line number Diff line change 3
3
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+ namespace Magento \Config \Model \Config ;
6
7
7
8
/**
8
- * System configuration structure
9
+ * System configuration structure.
9
10
*/
10
- namespace Magento \Config \Model \Config ;
11
-
12
11
class Structure implements \Magento \Config \Model \Config \Structure \SearchInterface
13
12
{
14
13
/**
@@ -275,8 +274,8 @@ public function getFieldPaths()
275
274
/**
276
275
* Iteration that collects config field paths recursively from config schema.
277
276
*
278
- * @param array $elements
279
- * @return array
277
+ * @param array $elements The elements to be parsed
278
+ * @return array An array of config path to config structure path map
280
279
*/
281
280
private function getFieldsRecursively (array $ elements = [])
282
281
{
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ public function testValidate()
57
57
* @expectedException \Magento\Framework\Exception\ValidatorException
58
58
* @expectedExceptionMessage The "test/test/test" path does not exists
59
59
*/
60
- public function testValidateIwthException ()
60
+ public function testValidateWithException ()
61
61
{
62
62
$ this ->structureMock ->expects ($ this ->once ())
63
63
->method ('getFieldPaths ' )
You can’t perform that action at this time.
0 commit comments