Skip to content

Commit 7890ec4

Browse files
ENGCOM-4438: Remove Environment emulation for better performance on sitemap generation #21542
- Merge Pull Request #21542 from Nazar65/magento2:refactoring-sitemap-generation - Merged commits: 1. 6c820d3 2. 348eeb6
2 parents c919148 + 348eeb6 commit 7890ec4

File tree

1 file changed

+3
-1
lines changed
  • app/code/Magento/Sitemap/Controller/Adminhtml/Sitemap

1 file changed

+3
-1
lines changed

app/code/Magento/Sitemap/Controller/Adminhtml/Sitemap/Generate.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@
77
namespace Magento\Sitemap\Controller\Adminhtml\Sitemap;
88

99
use Magento\Backend\App\Action;
10+
use Magento\Framework\App\Action\HttpGetActionInterface;
11+
use Magento\Sitemap\Controller\Adminhtml\Sitemap;
1012
use Magento\Store\Model\App\Emulation;
1113
use Magento\Framework\App\ObjectManager;
1214

1315
/**
1416
* Generate sitemap file
1517
*/
16-
class Generate extends \Magento\Sitemap\Controller\Adminhtml\Sitemap
18+
class Generate extends Sitemap implements HttpGetActionInterface
1719
{
1820
/** @var \Magento\Store\Model\App\Emulation $appEmulation */
1921
private $appEmulation;

0 commit comments

Comments
 (0)