5430e8d8bcabaa1313b9d0763b9fd01c808e8e94
[yaffs-website] / web / core / modules / system / tests / modules / router_test_directory / src / RouterTestServiceProvider.php
1 <?php
2
3 namespace Drupal\router_test;
4
5 use Drupal\Core\DependencyInjection\ContainerBuilder;
6 use Drupal\Core\DependencyInjection\ServiceProviderInterface;
7
8 /**
9  * Registers a dynamic route provider.
10  */
11 class RouterTestServiceProvider implements ServiceProviderInterface {
12
13   /**
14    * {@inheritdoc}
15    */
16   public function register(ContainerBuilder $container) {
17     $container->register('router_test.subscriber', 'Drupal\router_test\RouteTestSubscriber')->addTag('event_subscriber');
18     $container->register('access_check.router_test', 'Drupal\router_test\Access\TestAccessCheck')
19       ->addTag('access_check', ['applies_to' => '_access_router_test']);
20   }
21
22 }