Skip to content

Commit a0f38af

Browse files
committed
revert changes for vanilla install tests
1 parent 719f7b3 commit a0f38af

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

app/code/Magento/Backend/Block/Menu.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,19 +76,13 @@ class Menu extends \Magento\Backend\Block\Template
7676
*/
7777
private $anchorRenderer;
7878

79-
/**
80-
* @var \Magento\Framework\App\Route\ConfigInterface
81-
*/
82-
private $routeConfig;
83-
8479
/**
8580
* @param Template\Context $context
8681
* @param \Magento\Backend\Model\UrlInterface $url
8782
* @param \Magento\Backend\Model\Menu\Filter\IteratorFactory $iteratorFactory
8883
* @param \Magento\Backend\Model\Auth\Session $authSession
8984
* @param \Magento\Backend\Model\Menu\Config $menuConfig
9085
* @param \Magento\Framework\Locale\ResolverInterface $localeResolver
91-
* @param \Magento\Framework\App\Route\ConfigInterface $routeConfig
9286
* @param array $data
9387
* @param MenuItemChecker|null $menuItemChecker
9488
* @param AnchorRenderer|null $anchorRenderer
@@ -100,7 +94,6 @@ public function __construct(
10094
\Magento\Backend\Model\Auth\Session $authSession,
10195
\Magento\Backend\Model\Menu\Config $menuConfig,
10296
\Magento\Framework\Locale\ResolverInterface $localeResolver,
103-
\Magento\Framework\App\Route\ConfigInterface $routeConfig,
10497
array $data = [],
10598
MenuItemChecker $menuItemChecker = null,
10699
AnchorRenderer $anchorRenderer = null
@@ -210,9 +203,8 @@ protected function _afterToHtml($html)
210203
*/
211204
protected function _callbackSecretKey($match)
212205
{
213-
$routeId = $this->routeConfig->getRouteByFrontName($match[1]);
214206
return \Magento\Backend\Model\UrlInterface::SECRET_KEY_PARAM_NAME . '/' . $this->_url->getSecretKey(
215-
$routeId,
207+
$match[0],
216208
$match[2],
217209
$match[3]
218210
);

0 commit comments

Comments
 (0)