public function setCore(array $available_cores) {
    if (!isset($available_cores[$this->version])) {
      throw new BootstrapException(sprintf('There is no available Drupal core controller for Drupal version %s.', $this->version));
    }
    $this->core = $available_cores[$this->version];
  }
public function setCore(array $available_cores) {
    if (!isset($available_cores[$this->version])) {
      throw new BootstrapException(sprintf('There is no available Drupal core controller for Drupal version %s.', $this->version));
    }
    $this->core = $available_cores[$this->version];
  }
public function setCore ( array $ available_cores ) { if ( ! isset ( $ available_cores [ $ this -> version ] ) ) { throw new BootstrapException ( sprintf ( 'There is no available Drupal core controller for Drupal version %s.' , $ this -> version ) ) ; } $ this -> core = $ available_cores [ $ this -> version ] ; }
Instantiate and set Drupal core class.

@param array $available_cores
A major-version-keyed array of available core controllers.
Instantiate and set Drupal core class .