Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
SignUp.php
Go to the documentation of this file.
1 <?php
7 
8 use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
12 
16 class SignUp extends Action implements HttpGetActionInterface
17 {
23  private $urlBIEssentialsConfigPath = 'analytics/url/bi_essentials';
24 
28  private $config;
29 
33  const ADMIN_RESOURCE = 'Magento_Analytics::bi_essentials';
34 
39  public function __construct(
40  Context $context,
41  ScopeConfigInterface $config
42  ) {
43  $this->config = $config;
44  parent::__construct($context);
45  }
46 
52  public function execute()
53  {
54  return $this->resultRedirectFactory->create()->setUrl(
55  $this->config->getValue($this->urlBIEssentialsConfigPath)
56  );
57  }
58 }
$config
Definition: fraud_order.php:17
__construct(Context $context, ScopeConfigInterface $config)
Definition: SignUp.php:39