class RouterTestServiceProvider
Same name in other branches
- 9 core/modules/system/tests/modules/router_test_directory/src/RouterTestServiceProvider.php \Drupal\router_test\RouterTestServiceProvider
- 8.9.x core/modules/system/tests/modules/router_test_directory/src/RouterTestServiceProvider.php \Drupal\router_test\RouterTestServiceProvider
- 10 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 \Drupal\Core\DependencyInjection\ServiceProviderInterface
Expanded class hierarchy of RouterTestServiceProvider
File
-
core/
modules/ system/ tests/ modules/ router_test_directory/ src/ RouterTestServiceProvider.php, line 13
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', [
'applies_to' => '_access_router_test',
]);
$container->register('router_test.early_exception.subscriber', 'Drupal\\router_test\\RouterTestEarlyExceptionSubscriber')
->addTag('event_subscriber');
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
RouterTestServiceProvider::register | public | function | Overrides ServiceProviderInterface::register |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.