We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef525e5 commit ae3cbb9Copy full SHA for ae3cbb9
lib/internal/Magento/Framework/Module/Dir.php
@@ -45,8 +45,9 @@ public function getDir($moduleName, $type = '')
45
{
46
$path = $this->componentRegistrar->getPath(ComponentRegistrar::MODULE, $moduleName);
47
48
- if (! isset($path)) {
49
- throw new \LogicException("Component '$moduleName' of type '$type' is not correctly registered.");
+ if (!isset($path)) {
+ // (Do not throw \LogicException, as it would break backwards-compatibility.)
50
+ throw new \InvalidArgumentException("Component '$moduleName' of type '$type' is not correctly registered.");
51
}
52
53
if ($type) {
0 commit comments