File tree Expand file tree Collapse file tree 5 files changed +5
-3
lines changed
Store/Model/Config/Reader
dev/tests/integration/testsuite/Magento/Payment/Model
lib/internal/Magento/Framework/App/Config Expand file tree Collapse file tree 5 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
namespace Magento \Email \Model ;
7
+
7
8
use Magento \Framework \App \Config \ScopeConfigInterface ;
8
9
9
10
/**
Original file line number Diff line number Diff line change @@ -45,14 +45,14 @@ public function __construct(
45
45
* Read configuration data
46
46
*
47
47
* @param null|string $scope
48
- * @throws \Magento\Framework\Exception Exception is thrown when scope other than default is given
48
+ * @throws \Magento\Framework\Exception\LocalizedException Exception is thrown when scope other than default is given
49
49
* @return array
50
50
*/
51
51
public function read ($ scope = null )
52
52
{
53
53
$ scope = $ scope === null ? ScopeConfigInterface::SCOPE_TYPE_DEFAULT : $ scope ;
54
54
if ($ scope !== ScopeConfigInterface::SCOPE_TYPE_DEFAULT ) {
55
- throw new \Magento \Framework \Exception ( "Only default scope allowed " );
55
+ throw new \Magento \Framework \Exception \ LocalizedException ( __ ( "Only default scope allowed " ) );
56
56
}
57
57
58
58
$ config = $ this ->_initialConfig ->getData ($ scope );
Original file line number Diff line number Diff line change 5
5
*/
6
6
7
7
namespace Magento \Theme \Model \View ;
8
+
8
9
use Magento \Framework \App \Config \ScopeConfigInterface ;
9
10
10
11
/**
Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
namespace Magento \Payment \Model ;
7
+
7
8
use Magento \Framework \App \Config \ScopeConfigInterface ;
8
9
9
10
/**
Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
namespace Magento \Framework \App \Config ;
7
- use Magento \Framework \App \Config \ScopeConfigInterface ;
8
7
9
8
/**
10
9
* Config data model
You can’t perform that action at this time.
0 commit comments