class AcceptHeaderRoutingTestServiceProvider in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/tests/modules/accept_header_routing_test/src/AcceptHeaderRoutingTestServiceProvider.php \Drupal\accept_header_routing_test\AcceptHeaderRoutingTestServiceProvider
Service provider for the accept_header_routing_test module.
Hierarchy
- class \Drupal\accept_header_routing_test\AcceptHeaderRoutingTestServiceProvider implements ServiceModifierInterface
Expanded class hierarchy of AcceptHeaderRoutingTestServiceProvider
File
- core/
modules/ system/ tests/ modules/ accept_header_routing_test/ src/ AcceptHeaderRoutingTestServiceProvider.php, line 16 - Contains \Drupal\accept_header_routing_test\AcceptHeaderRoutingTestServiceProvider.
Namespace
Drupal\accept_header_routing_testView source
class AcceptHeaderRoutingTestServiceProvider implements ServiceModifierInterface {
/**
* {@inheritdoc}
*/
public function alter(ContainerBuilder $container) {
// Remove the basic content negotation middleware and replace it with a
// basic header based one.
$container
->register('http_middleware.negotiation', 'Drupal\\accept_header_routing_test\\AcceptHeaderMiddleware')
->addTag('http_middleware', [
'priority' => 400,
]);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AcceptHeaderRoutingTestServiceProvider:: |
public | function |
Modifies existing service definitions. Overrides ServiceModifierInterface:: |