You are here

public function EdgeExceptionSubscriber::__construct in Apigee Edge 8

EdgeExceptionSubscriber constructor.

Parameters

\Psr\Log\LoggerInterface $logger: The logger service.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.

\Drupal\Core\DependencyInjection\ClassResolverInterface $class_resolver: The class resolver service.

\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.

array $main_content_renderers: The available main content renderer service IDs, keyed by format.

File

src/EventSubscriber/EdgeExceptionSubscriber.php, line 102

Class

EdgeExceptionSubscriber
Handles uncaught ApiExceptions.

Namespace

Drupal\apigee_edge\EventSubscriber

Code

public function __construct(LoggerInterface $logger, ConfigFactoryInterface $config_factory, MessengerInterface $messenger, ClassResolverInterface $class_resolver, RouteMatchInterface $route_match, array $main_content_renderers) {
  $this->logger = $logger;
  $this->configFactory = $config_factory;
  $this->messenger = $messenger;
  $this->classResolver = $class_resolver;
  $this->routeMatch = $route_match;
  $this->mainContentRenderers = $main_content_renderers;
}