Skip to content

Commit 43eaf70

Browse files
ENGCOM-3374: missing use statement in layout generator #19009
- Merge Pull Request #19009 from adeptofvoltron/magento2:missing_use_statement_in_layout_generator - Merged commits: 1. effd4cd 2. 1662590
2 parents b9bd738 + 1662590 commit 43eaf70

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)