-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into hotfix/PAOP-185-improve-response-log
- Loading branch information
Showing
12 changed files
with
103 additions
and
164 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
<?php | ||
|
||
namespace MundiPagg\MundiPagg\Controller\Adminhtml\Plans; | ||
|
||
use Magento\Backend\App\Action; | ||
use Magento\Backend\App\Action\Context; | ||
use Magento\Framework\Registry; | ||
use Magento\Framework\View\Result\PageFactory; | ||
use Magento\Framework\Controller\Result\JsonFactory; | ||
use MundiPagg\MundiPagg\Concrete\Magento2CoreSetup; | ||
use Magento\Framework\Message\Factory; | ||
use Magento\Catalog\Model\ResourceModel\Product\CollectionFactory; | ||
use MundiPagg\MundiPagg\Helper\ProductHelper; | ||
use Magento\Store\Model\StoreManagerInterface; | ||
|
||
class PlanAction extends Action | ||
{ | ||
|
||
protected $resultPageFactory = false; | ||
/** | ||
* @var CollectionFactory | ||
*/ | ||
protected $productCollectionFactory; | ||
/** | ||
* @var JsonFactory | ||
*/ | ||
protected $resultJsonFactory; | ||
/** | ||
* @var ProductHelper | ||
*/ | ||
protected $productHelper; | ||
/** | ||
* @var Registry | ||
*/ | ||
protected $coreRegistry; | ||
/** | ||
* @var Factory | ||
*/ | ||
protected $messageFactory; | ||
|
||
|
||
/** | ||
* Constructor | ||
* | ||
* @param Context $context | ||
* @param PageFactory $resultPageFactory | ||
* @param Registry $coreRegistry | ||
*/ | ||
public function __construct( | ||
Context $context, | ||
PageFactory $resultPageFactory, | ||
Registry $coreRegistry, | ||
Factory $messageFactory, | ||
CollectionFactory $productCollectionFactory, | ||
JsonFactory $resultJsonFactory, | ||
ProductHelper $productHelper, | ||
StoreManagerInterface $storeManager | ||
) { | ||
parent::__construct($context); | ||
|
||
$this->resultPageFactory = $resultPageFactory; | ||
$this->coreRegistry = $coreRegistry; | ||
$this->messageFactory = $messageFactory; | ||
$this->productHelper = $productHelper; | ||
$this->productCollectionFactory = $productCollectionFactory; | ||
$this->resultJsonFactory = $resultJsonFactory; | ||
$this->storeManager = $storeManager; | ||
|
||
$this->bootstrapDefaultStoreConfigurations(); | ||
} | ||
|
||
/** | ||
* @return \Magento\Framework\Controller\ResultInterface | ||
*/ | ||
public function execute() | ||
{ | ||
} | ||
|
||
private function bootstrapDefaultStoreConfigurations() | ||
{ | ||
$defaultStoreId = Magento2CoreSetup::getDefaultStoreId(); | ||
$this->storeManager->setCurrentStore($defaultStoreId); | ||
|
||
Magento2CoreSetup::bootstrap(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters