class ExceptionContainer in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/system/src/Tests/Bootstrap/ExceptionContainer.php \Drupal\system\Tests\Bootstrap\ExceptionContainer
Base container which throws an exception.
Hierarchy
- class \Drupal\Component\DependencyInjection\Container implements IntrospectableContainerInterface
- class \Drupal\Core\DependencyInjection\Container
- class \Drupal\system\Tests\Bootstrap\ExceptionContainer
- class \Drupal\Core\DependencyInjection\Container
Expanded class hierarchy of ExceptionContainer
File
- core/
modules/ system/ src/ Tests/ Bootstrap/ ExceptionContainer.php, line 15 - Contains \Drupal\system\Tests\Bootstrap\ExceptionContainer.
Namespace
Drupal\system\Tests\BootstrapView source
class ExceptionContainer extends Container {
/**
* {@inheritdoc}
*/
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);
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Container:: |
protected | property | The aliases of the container. | |
Container:: |
protected | property | Whether the container parameters can still be changed. | |
Container:: |
protected | property | The currently loading services. | |
Container:: |
protected | property | The parameters of the container. | |
Container:: |
protected | property | The instantiated private services. | |
Container:: |
protected | property | The service definitions of the container. | |
Container:: |
protected | property | The instantiated services. | |
Container:: |
public | function |
Adds a scope to the container. Overrides ContainerInterface:: |
|
Container:: |
protected | function | Creates a service from a service definition. | 1 |
Container:: |
public | function |
Enters the given scope. Overrides ContainerInterface:: |
|
Container:: |
protected | function | Provides alternatives for a given array and key. | |
Container:: |
public | function |
Gets a parameter. Overrides ContainerInterface:: |
|
Container:: |
protected | function | Provides alternatives in case a parameter was not found. | |
Container:: |
protected | function | Provides alternatives in case a service was not found. | |
Container:: |
public | function | Gets all defined service IDs. | |
Container:: |
public | function |
Returns true if the given service is defined. Overrides ContainerInterface:: |
|
Container:: |
public | function |
Checks if a parameter exists. Overrides ContainerInterface:: |
|
Container:: |
public | function |
Whether this container has the given scope. Overrides ContainerInterface:: |
|
Container:: |
public | function |
Check for whether or not a service has been initialized. Overrides IntrospectableContainerInterface:: |
|
Container:: |
public | function |
Determines whether the given scope is currently active. Overrides ContainerInterface:: |
|
Container:: |
public | function |
Leaves the current scope, and re-enters the parent scope. Overrides ContainerInterface:: |
|
Container:: |
protected | function | Resolves arguments that represent services or variables to the real values. | 1 |
Container:: |
public | function |
Sets a service. Overrides Container:: |
|
Container:: |
public | function |
Sets a parameter. Overrides ContainerInterface:: |
|
Container:: |
public | function | Constructs a new Container instance. | 1 |
Container:: |
public | function | ||
ContainerInterface:: |
constant | |||
ContainerInterface:: |
constant | |||
ContainerInterface:: |
constant | |||
ContainerInterface:: |
constant | |||
ContainerInterface:: |
constant | |||
ExceptionContainer:: |
public | function |
Gets a service. Overrides Container:: |