You are here

public function BigBlueButton::__construct in BigBlueButton 8

BigBlueButton constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Config factory.

File

src/Service/BigBlueButton.php, line 23

Class

BigBlueButton
Class BigBlueButton.

Namespace

Drupal\bbb\Service

Code

public function __construct(ConfigFactoryInterface $config_factory) {
  if (!getenv('BBB_SECURITY_SALT') && !getenv('BBB_SECRET')) {
    putenv('BBB_SECRET=' . $config_factory
      ->get('bbb.settings')
      ->get('security_salt'));
  }
  if (!getenv('BBB_SERVER_BASE_URL')) {
    putenv('BBB_SERVER_BASE_URL=' . $config_factory
      ->get('bbb.settings')
      ->get('base_url'));
  }
  parent::__construct();
}