Skip to content

Commit 57c7353

Browse files
author
Yevhen Miroshnychenko
committed
MAGETWO-66771: CLI command config:sensitive:set doesn't encrypt input values
1 parent 4ad1020 commit 57c7353

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/code/Magento/Config/Console/Command/EmulatedAdminhtmlAreaProcessor.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
use Magento\Framework\Config\ScopeInterface;
1111

1212
/**
13-
* Emulator adminhtml area for CLI command.
13+
* Emulates callback inside adminhtml area code and adminhtml scope.
14+
* It is used for CLI commands which should work with data available only in adminhtml scope.
1415
*/
1516
class EmulatedAdminhtmlAreaProcessor
1617
{
@@ -39,19 +40,18 @@ public function __construct(ScopeInterface $scope, State $state)
3940
}
4041

4142
/**
42-
* Emulate callback inside adminhtml area code.
43+
* Emulates callback inside adminhtml area code and adminhtml scope.
4344
*
4445
* Returns the return value of the callback.
4546
*
4647
* @param callable $callback The callable to be called
4748
* @param array $params The parameters to be passed to the callback, as an indexed array
48-
* @return mixed
49+
* @return boolean|integer|float|string|array|object|callable|resource|null
4950
* @throws \Exception The exception is thrown if the parameter $callback throws an exception
5051
*/
5152
public function process(callable $callback, array $params = [])
5253
{
5354
$currentScope = $this->scope->getCurrentScope();
54-
5555
try {
5656
return $this->state->emulateAreaCode(Area::AREA_ADMINHTML, function () use ($callback, $params) {
5757
$this->scope->setCurrentScope(Area::AREA_ADMINHTML);

0 commit comments

Comments
 (0)