Update Composer, update everything
This commit is contained in:
parent
ea3e94409f
commit
dda5c284b6
19527 changed files with 1135420 additions and 351004 deletions
34
vendor/chi-teck/drupal-code-generator/templates/d8/service/custom.twig
vendored
Normal file
34
vendor/chi-teck/drupal-code-generator/templates/d8/service/custom.twig
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{% import 'lib/di.twig' as di %}
|
||||
<?php
|
||||
|
||||
namespace Drupal\{{ machine_name }};
|
||||
|
||||
{% if services %}
|
||||
{{ di.use(services) }}
|
||||
{% endif %}
|
||||
/**
|
||||
* {{ class }} service.
|
||||
*/
|
||||
class {{ class }} {
|
||||
|
||||
{% if services %}
|
||||
{{ di.properties(services) }}
|
||||
|
||||
/**
|
||||
* Constructs {{ class|article|lower }} object.
|
||||
*
|
||||
{{ di.annotation(services) }}
|
||||
*/
|
||||
public function __construct({{ di.signature(services) }}) {
|
||||
{{ di.assignment(services) }}
|
||||
}
|
||||
|
||||
{% endif %}
|
||||
/**
|
||||
* Method description.
|
||||
*/
|
||||
public function doSomething() {
|
||||
// @DCG place your code here.
|
||||
}
|
||||
|
||||
}
|
||||
Reference in a new issue