Author: Romain Ruaud (romain.ruaud@smile.fr)
Inheritance: extends Magento\Backend\App\AbstractAction
Beispiel #1
0
 /**
  * Class constructor
  *
  * @param Context              $context         Action context
  * @param Structure            $configStructure Relevance configuration Structure
  * @param ConfigSectionChecker $sectionChecker  Configuration Section Checker
  * @param Factory              $configFactory   Configuration Factory
  * @param FrontendInterface    $cache           Cache instance
  * @param StringUtils          $string          String helper
  */
 public function __construct(Context $context, Structure $configStructure, ConfigSectionChecker $sectionChecker, Factory $configFactory, FrontendInterface $cache, StringUtils $string)
 {
     parent::__construct($context, $configStructure, $sectionChecker);
     $this->configFactory = $configFactory;
     $this->cache = $cache;
     $this->string = $string;
 }
 /**
  * Class constructor
  *
  * @param Context              $context         Action context
  * @param Structure            $configStructure Relevance configuration Structure
  * @param ConfigSectionChecker $sectionChecker  Configuration Section Checker
  * @param Config               $backendConfig   Configuration model
  */
 public function __construct(Context $context, Structure $configStructure, ConfigSectionChecker $sectionChecker, Config $backendConfig)
 {
     $this->backendConfig = $backendConfig;
     parent::__construct($context, $configStructure, $sectionChecker);
 }