Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Wizard.php
Go to the documentation of this file.
1 <?php
7 
9 use Magento\Framework\App\Action\HttpPostActionInterface as HttpPostActionInterface;
14 
18 class Wizard extends Action implements HttpPostActionInterface, HttpGetActionInterface
19 {
25  const ADMIN_RESOURCE = 'Magento_Catalog::products';
26 
30  protected $productBuilder;
31 
36  public function __construct(Context $context, Builder $productBuilder)
37  {
38  parent::__construct($context);
39  $this->productBuilder = $productBuilder;
40  }
41 
45  public function execute()
46  {
47  $this->productBuilder->build($this->getRequest());
48 
50  $resultLayout = $this->resultFactory->create(ResultFactory::TYPE_LAYOUT);
51  return $resultLayout;
52  }
53 }
__construct(Context $context, Builder $productBuilder)
Definition: Wizard.php:36