Skip to content

Commit 3f6c67f

Browse files
ENGCOM-3530: [Backport] missing use statement in layout generator #19338
- Merge Pull Request #19338 from gelanivishal/magento2:2.2-develop-PR-port-19009 - Merged commits: 1. cb7b67e 2. 0cc9a11
2 parents 32a7c4b + 0cc9a11 commit 3f6c67f

File tree

1 file changed

+2
-1
lines changed
  • lib/internal/Magento/Framework/View/Layout/Generator

1 file changed

+2
-1
lines changed

lib/internal/Magento/Framework/View/Layout/Generator/Block.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
namespace Magento\Framework\View\Layout\Generator;
77

88
use Magento\Framework\App\State;
9+
use Magento\Framework\Exception\LocalizedException;
910
use Magento\Framework\ObjectManager\Config\Reader\Dom;
1011
use Magento\Framework\View\Element\Template;
1112
use Magento\Framework\View\Layout;
@@ -272,7 +273,7 @@ protected function getBlockInstance($block, array $arguments = [])
272273
}
273274
}
274275
if (!$block instanceof \Magento\Framework\View\Element\AbstractBlock) {
275-
throw new \Magento\Framework\Exception\LocalizedException(
276+
throw new LocalizedException(
276277
new \Magento\Framework\Phrase(
277278
'Invalid block type: %1',
278279
[is_object($block) ? get_class($block) : (string) $block]

0 commit comments

Comments
 (0)