You are here

public function Callback::__construct in Instagram API 8

Callback Controller constructor.

Parameters

\Drupal\Core\Config\ConfigFactory $config: An instance of ConfigFactory.

\Drupal\Core\Logger\LoggerChannelFactoryInterface $loggerFactory: LoggerChannelFactoryInterface.

File

src/Controller/Callback.php, line 37

Class

Callback
Class Instagram Callback Controller.

Namespace

Drupal\instagram_api\Controller

Code

public function __construct(ConfigFactory $config, LoggerChannelFactoryInterface $loggerFactory) {
  $this->config = $config
    ->get('instagram_api.settings');
  $this->configEditable = $config
    ->getEditable('instagram_api.settings');
  $this->loggerFactory = $loggerFactory;
}