forked from a64f7bb4-7358-4778-9fbe-3b882c34cc1d/v1
35 lines
546 B
Twig
35 lines
546 B
Twig
{% import '_lib/di.twig' as di %}
|
|
<?php
|
|
|
|
namespace Drupal\{{ machine_name }};
|
|
|
|
{% if services %}
|
|
{{ di.use(services) }}
|
|
{% endif %}
|
|
/**
|
|
* Service description.
|
|
*/
|
|
class {{ class }} {
|
|
|
|
{% if services %}
|
|
{{ di.properties(services) }}
|
|
|
|
/**
|
|
* Constructs {{ class|article }} object.
|
|
*
|
|
{{ di.annotation(services) }}
|
|
*/
|
|
public function __construct({{ di.signature(services) }}) {
|
|
{{ di.assignment(services) }}
|
|
}
|
|
|
|
{% endif %}
|
|
/**
|
|
* Method description.
|
|
*/
|
|
public function doSomething() {
|
|
// @DCG place your code here.
|
|
}
|
|
|
|
}
|