51 lines
1.3 KiB
PHP
Executable File
51 lines
1.3 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* @author Olegnax
|
|
* @package Olegnax_GoogleMap
|
|
* @copyright Copyright (c) 2020 Olegnax (http://olegnax.com/). All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
* @noinspection PhpDeprecationInspection
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace Olegnax\GoogleMap\Controller\Adminhtml\Location;
|
|
|
|
use Magento\Backend\App\Action\Context;
|
|
use Magento\Backend\Model\View\Result\ForwardFactory;
|
|
use Magento\Framework\Controller\Result\Forward;
|
|
use Magento\Framework\Controller\ResultInterface;
|
|
use Magento\Framework\Registry;
|
|
use Olegnax\GoogleMap\Controller\Adminhtml\Location;
|
|
|
|
class NewAction extends Location
|
|
{
|
|
|
|
protected $resultForwardFactory;
|
|
|
|
/**
|
|
* @param Context $context
|
|
* @param Registry $coreRegistry
|
|
* @param ForwardFactory $resultForwardFactory
|
|
*/
|
|
public function __construct(
|
|
Context $context,
|
|
Registry $coreRegistry,
|
|
ForwardFactory $resultForwardFactory
|
|
) {
|
|
$this->resultForwardFactory = $resultForwardFactory;
|
|
parent::__construct($context, $coreRegistry);
|
|
}
|
|
|
|
/**
|
|
* New action
|
|
*
|
|
* @return ResultInterface
|
|
*/
|
|
public function execute()
|
|
{
|
|
/** @var Forward $resultForward */
|
|
$resultForward = $this->resultForwardFactory->create();
|
|
return $resultForward->forward('edit');
|
|
}
|
|
}
|