8116f27ce7dcab3ee2ab8a78b6c4e4903c385416
[yaffs-website] / vendor / drupal / console / templates / module / src / service.php.twig
1 {% extends "base/class.php.twig" %}
2
3 {% block file_path %}
4 \Drupal\{{module}}\{{ class }}.
5 {% endblock %}
6
7 {% block namespace_class %}
8 namespace Drupal\{{module}};{% endblock %}
9
10 {% block class_declaration %}
11 /**
12  * Class {{ class }}.
13  *
14  * @package Drupal\{{module}}
15  */
16 class {{ class }}{% if(interface is defined and interface) %} implements {{ interface }}{% endif %} {% endblock %}
17 {% block class_construct %}
18   /**
19    * Constructs a new {{ class }} object.
20    */
21   public function __construct({{ servicesAsParameters(services)|join(', ') }}) {
22 {{ serviceClassInitialization(services) }}
23   }
24 {% endblock %}