Skip to content

Commit 3328e80

Browse files
author
Eugene Tulika
committed
MAGETWO-44440: Register URN resolver to resolve internal dependencies
- Fixed CR comments
1 parent d3d7645 commit 3328e80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/Magento/Framework/Config/Dom/UrnResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ public function getRealPath($schema)
4343
$package = $componentRegistrar
4444
->getPath(ComponentRegistrar::LIBRARY, $matches['vendor'] . '/' . $matches['framework']);
4545
} else {
46-
throw new NotFoundException(__("Unsupported format of schema location: '%1'", $schema));
46+
throw new NotFoundException(new Phrase("Unsupported format of schema location: '%1'", $schema));
4747
}
4848
$schemaPath = $package . '/' . $matches['path'];
4949
if (empty($package) || !file_exists($schemaPath)) {
5050
throw new NotFoundException(
51-
__("Could not locate schema: '%1' at '%2'", $schema, $schemaPath)
51+
new Phrase("Could not locate schema: '%1' at '%2'", $schema, $schemaPath)
5252
);
5353
}
5454
return $schemaPath;

0 commit comments

Comments
 (0)