38 $this->scope = $scope;
39 $this->state = $state;
55 $currentScope = $this->scope->getCurrentScope();
59 return call_user_func_array($callback,
$params);
61 }
catch (\Exception $exception) {
64 $this->scope->setCurrentScope($currentScope);
__construct(ScopeInterface $scope, State $state)
process(callable $callback, array $params=[])
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]