File tree 2 files changed +6
-9
lines changed
modules/os2forms_digital_post
2 files changed +6
-9
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
namespace Drupal \os2forms_digital_post \Drush \Commands ;
4
4
5
5
use Drupal \Component \Serialization \Yaml ;
6
+ use Drupal \Core \DependencyInjection \AutowireTrait ;
6
7
use Drupal \Core \Utility \Token ;
7
8
use Drupal \entity_print \Plugin \EntityPrintPluginManagerInterface ;
8
9
use Drupal \os2forms_digital_post \Helper \DigitalPostHelper ;
12
13
use ItkDev \Serviceplatformen \Service \SF1601 \SF1601 ;
13
14
use Symfony \Component \Console \Exception \InvalidArgumentException ;
14
15
use Symfony \Component \Console \Style \SymfonyStyle ;
16
+ use Symfony \Component \DependencyInjection \Attribute \Autowire ;
15
17
use Symfony \Contracts \HttpClient \Exception \ClientExceptionInterface ;
16
18
17
19
/**
18
20
* Test commands for digital post.
19
21
*/
20
22
class DigitalPostTestCommands extends DrushCommands {
23
+ use AutowireTrait;
21
24
22
25
/**
23
26
* Constructor.
24
27
*/
25
28
public function __construct (
29
+ #[Autowire(service: DigitalPostHelper::class)]
26
30
private readonly DigitalPostHelper $ digitalPostHelper ,
27
31
private readonly Token $ token ,
32
+ #[Autowire(service: 'plugin.manager.entity_print.print_engine ' )]
28
33
private readonly EntityPrintPluginManagerInterface $ entityPrintPluginManager ,
34
+ #[Autowire(service: Settings::class)]
29
35
private readonly Settings $ digitalPostSettings ,
30
36
) {
31
37
}
You can’t perform that action at this time.
0 commit comments