{% 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 }}.
 *
 * Listens to the dynamic route events.
 */
class {{ class }} extends RouteSubscriberBase {% endblock %}
{% block class_methods %}
  /**
   * {@inheritdoc}
   */
  protected function alterRoutes(RouteCollection $collection) {
  }{% endblock %}
