/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
lib/internal/Magento/Framework/View/DesignLoader.php
58 строк
1 KB
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
22 окт 2025, 17:47
22 окт 2025, 17:47
1b769b7
Код
Авторство
О чём код?
<?php /** * Copyright 2014 Adobe * All Rights Reserved. */ namespace Magento\Framework\View; class DesignLoader { /** * Request * * @var \Magento\Framework\App\RequestInterface */ protected $_request; /** * Application * * @var \Magento\Framework\App\AreaList */ protected $_areaList; /** * Layout * * @var \Magento\Framework\App\State */ protected $appState; /** * @param \Magento\Framework\App\RequestInterface $request * @param \Magento\Framework\App\AreaList $areaList * @param \Magento\Framework\App\State $appState */ public function __construct( \Magento\Framework\App\RequestInterface $request, \Magento\Framework\App\AreaList $areaList, \Magento\Framework\App\State $appState ) { $this->_request = $request; $this->_areaList = $areaList; $this->appState = $appState; } /** * Load design * * @return void */ public function load() { $area = $this->_areaList->getArea($this->appState->getAreaCode()); $area->load(\Magento\Framework\App\Area::PART_DESIGN); $area->load(\Magento\Framework\App\Area::PART_TRANSLATE); $area->detectDesign($this->_request); } }