Version 1
[yaffs-website] / vendor / drupal / console / templates / module / src / Routing / route-subscriber.php.twig
diff --git a/vendor/drupal/console/templates/module/src/Routing/route-subscriber.php.twig b/vendor/drupal/console/templates/module/src/Routing/route-subscriber.php.twig
new file mode 100644 (file)
index 0000000..f7c52b5
--- /dev/null
@@ -0,0 +1,29 @@
+{% extends "base/class.php.twig" %}
+
+{% block file_path %}
+\Drupal\{{module}}\Routing\{{ class }}.
+{% endblock %}
+
+{% block namespace_class %}
+namespace Drupal\{{module}}\Routing;
+{% endblock %}
+
+{% block use_class %}
+use Drupal\Core\Routing\RouteSubscriberBase;
+use Symfony\Component\Routing\RouteCollection;
+{% endblock %}
+
+{% block class_declaration %}
+/**
+ * Class {{ class }}.
+ *
+ * @package Drupal\{{module}}\Routing
+ * Listens to the dynamic route events.
+ */
+class {{ class }} extends RouteSubscriberBase {% endblock %}
+{% block class_methods %}
+  /**
+   * {@inheritdoc}
+   */
+  protected function alterRoutes(RouteCollection $collection) {
+  }{% endblock %}