class RouterTestServiceProvider in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/tests/modules/router_test_directory/src/RouterTestServiceProvider.php \Drupal\router_test\RouterTestServiceProvider
Registers a dynamic route provider.
Hierarchy
- class \Drupal\router_test\RouterTestServiceProvider implements ServiceProviderInterface
Expanded class hierarchy of RouterTestServiceProvider
File
- core/
modules/ system/ tests/ modules/ router_test_directory/ src/ RouterTestServiceProvider.php, line 16 - Contains \Drupal\router_test\RouterTestServiceProvider.
Namespace
Drupal\router_testView source
class RouterTestServiceProvider implements ServiceProviderInterface {
/**
* {@inheritdoc}
*/
public function register(ContainerBuilder $container) {
$container
->register('router_test.subscriber', 'Drupal\\router_test\\RouteTestSubscriber')
->addTag('event_subscriber');
$container
->register('access_check.router_test', 'Drupal\\router_test\\Access\\TestAccessCheck')
->addTag('access_check', array(
'applies_to' => '_access_router_test',
));
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RouterTestServiceProvider:: |
public | function |
Registers services to the container. Overrides ServiceProviderInterface:: |