public function __construct(\Magento\Framework\App\State $state, Factory $configFactory) { $this->state = $state; $this->configFactory = $configFactory; parent::__construct(); }