83cb4494611929ed944c59f39c73addbe850b505
[yaffs-website] / vendor / drupal / console / templates / module / src / Routing / route-subscriber.php.twig
1 {% extends "base/class.php.twig" %}
2
3 {% block file_path %}
4 \Drupal\{{module}}\Routing\{{ class }}.
5 {% endblock %}
6
7 {% block namespace_class %}
8 namespace Drupal\{{module}}\Routing;
9 {% endblock %}
10
11 {% block use_class %}
12 use Drupal\Core\Routing\RouteSubscriberBase;
13 use Symfony\Component\Routing\RouteCollection;
14 {% endblock %}
15
16 {% block class_declaration %}
17 /**
18  * Class {{ class }}.
19  *
20  * Listens to the dynamic route events.
21  */
22 class {{ class }} extends RouteSubscriberBase {% endblock %}
23 {% block class_methods %}
24   /**
25    * {@inheritdoc}
26    */
27   protected function alterRoutes(RouteCollection $collection) {
28   }{% endblock %}