Pull merge.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d8 / service / custom.twig
1 {% import 'lib/di.twig' as di %}
2 <?php
3
4 namespace Drupal\{{ machine_name }};
5
6 {% if services %}
7 {{ di.use(services) }}
8 {% endif %}
9 /**
10  * {{ class }} service.
11  */
12 class {{ class }} {
13
14 {% if services %}
15 {{ di.properties(services) }}
16
17   /**
18    * Constructs {{ class|article|lower }} object.
19    *
20 {{ di.annotation(services) }}
21    */
22   public function __construct({{ di.signature(services) }}) {
23 {{ di.assignment(services) }}
24   }
25
26 {% endif %}
27   /**
28    * Method description.
29    */
30   public function doSomething() {
31     // @DCG place your code here.
32   }
33
34 }