public function ExceptionContainer::get in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/FunctionalTests/Bootstrap/ExceptionContainer.php \Drupal\FunctionalTests\Bootstrap\ExceptionContainer::get()
- 10 core/tests/Drupal/FunctionalTests/Bootstrap/ExceptionContainer.php \Drupal\FunctionalTests\Bootstrap\ExceptionContainer::get()
Overrides Container::get
File
- core/tests/ Drupal/ FunctionalTests/ Bootstrap/ ExceptionContainer.php, line 15 
Class
- ExceptionContainer
- Base container which throws an exception.
Namespace
Drupal\FunctionalTests\BootstrapCode
public function get($id, $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE) {
  if ($id === 'http_kernel') {
    throw new \Exception('Thrown exception during Container::get');
  }
  else {
    return parent::get($id, $invalidBehavior);
  }
}