File tree Expand file tree Collapse file tree 6 files changed +22
-13
lines changed
dev/tests/integration/testsuite/Magento/Framework/Interception
lib/internal/Magento/Framework/Interception
setup/src/Magento/Setup/Module/Di/App/Task/Operation Expand file tree Collapse file tree 6 files changed +22
-13
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 \Framework \Interception ;
8
9
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 \Framework \Interception ;
7
9
10
+ use Magento \Framework \Exception \FileSystemException ;
11
+
8
12
/**
9
13
* Interception configuration loader interface.
10
14
*/
@@ -15,6 +19,7 @@ interface ConfigLoaderInterface
15
19
*
16
20
* @param string $cacheId
17
21
* @return array
22
+ * @throws FileSystemException
18
23
*/
19
- public function load ($ cacheId );
24
+ public function load (string $ cacheId ): array ;
20
25
}
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 \Framework \Interception ;
7
9
10
+ use Magento \Framework \Exception \FileSystemException ;
11
+
8
12
/**
9
13
* Interception config writer interface.
10
14
*/
@@ -15,6 +19,7 @@ interface ConfigWriterInterface
15
19
*
16
20
* @param array $scopes
17
21
* @return void
22
+ * @throws FileSystemException
18
23
*/
19
- public function write ($ scopes );
24
+ public function write (array $ scopes ): void ;
20
25
}
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 \Framework \Interception ;
7
9
8
10
use Magento \Framework \App \Filesystem \DirectoryList ;
@@ -143,12 +145,9 @@ public function __construct(
143
145
}
144
146
145
147
/**
146
- * Write interception configuration for scopes.
147
- *
148
- * @param array $scopes
149
- * @return void
148
+ * @inheritdoc
150
149
*/
151
- public function write ($ scopes )
150
+ public function write (array $ scopes ): void
152
151
{
153
152
foreach ($ scopes as $ scope ) {
154
153
$ this ->scopeConfig ->setCurrentScope ($ scope );
@@ -198,13 +197,9 @@ public function write($scopes)
198
197
}
199
198
200
199
/**
201
- * Load interception configuration data per scope.
202
- *
203
- * @param string $cacheId
204
- * @return array
205
- * @throws \Magento\Framework\Exception\FileSystemException
200
+ * @inheritdoc
206
201
*/
207
- public function load ($ cacheId )
202
+ public function load (string $ cacheId ): array
208
203
{
209
204
$ file = $ this ->directoryList ->getPath (DirectoryList::GENERATED_METADATA ) . '/ ' . $ cacheId . '. ' . 'php ' ;
210
205
if (file_exists ($ file )) {
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
use Magento \Framework \Interception \Test \Unit \Custom \Module \Model \Item ;
8
9
use Magento \Framework \Interception \Test \Unit \Custom \Module \Model \ItemContainer ;
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 \Setup \Module \Di \App \Task \Operation ;
7
9
8
10
use Magento \Framework \Config \ScopeInterface ;
You can’t perform that action at this time.
0 commit comments