File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
dev/tests/static/framework/Magento/TestFramework/Dependency Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ class PhpRule implements RuleInterface
79
79
* @var array
80
80
*/
81
81
private $ whitelists ;
82
+
82
83
/**
83
84
* @var ClassScanner
84
85
*/
@@ -102,7 +103,6 @@ public function __construct(
102
103
) {
103
104
$ this ->_mapRouters = $ mapRouters ;
104
105
$ this ->_mapLayoutBlocks = $ mapLayoutBlocks ;
105
- $ this ->_namespaces = implode ('| ' , \Magento \Framework \App \Utility \Files::init ()->getNamespaces ());
106
106
$ this ->pluginMap = $ pluginMap ?: null ;
107
107
$ this ->routeMapper = new RouteMapper ();
108
108
$ this ->whitelists = $ whitelists ;
Original file line number Diff line number Diff line change 7
7
8
8
namespace Magento \TestFramework \Dependency \Reader ;
9
9
10
+ use Magento \Setup \Module \Di \Code \Reader \FileClassScanner ;
11
+
10
12
/**
11
13
* Search classes in file by path.
12
14
*/
@@ -42,7 +44,7 @@ public function getClassName(string $filePath): string
42
44
*/
43
45
private function loadClassName (string $ filePath ): string
44
46
{
45
- $ scanner = new \ Magento \ Setup \ Module \ Di \ Code \ Reader \ FileClassScanner ($ filePath );
47
+ $ scanner = new FileClassScanner ($ filePath );
46
48
return $ scanner ->getClassName ();
47
49
}
48
50
}
You can’t perform that action at this time.
0 commit comments