3 namespace Drupal\FunctionalTests\Bootstrap;
5 use Drupal\Core\DependencyInjection\Container;
8 * Base container which throws an exception.
10 class ExceptionContainer extends Container {
15 public function get($id, $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE) {
16 if ($id === 'http_kernel') {
17 throw new \Exception('Thrown exception during Container::get');
20 return parent::get($id, $invalidBehavior);