1
0
Fork 0
mirror of synced 2025-03-30 03:30:12 +03:00
magento-module/Controller/Index/Test.php
Alex Lushpai f4000c9874 v2.0
2017-05-31 15:24:46 +03:00

38 lines
No EOL
852 B
PHP

<?php
namespace Retailcrm\Retailcrm\Controller\Index;
use Magento\Framework\App\Helper\Context;
use Psr\Log\LoggerInterface;
class Test extends \Magento\Framework\App\Action\Action
{
protected $logger;
public function __construct(
LoggerInterface $logger
,\Magento\Framework\App\Action\Context $context
,\Magento\Framework\View\Page\Config $pageConfig
,\Magento\Framework\App\Config\ScopeConfigInterface $config
)
{
$this->logger = $logger;
$api_url = $config->getValue('retailcrm/general/api_url');
$api_key = $config->getValue('retailcrm/general/api_key');
var_dump($api_key);
var_dump($api_url);
//$this->logger->debug($api_url);
parent::__construct($context);
}
public function execute()
{
//
exit;
}
}