File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed
modules/os2forms_digital_post Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 33namespace Drupal \os2forms_digital_post \Drush \Commands ;
44
55use Drupal \Component \Serialization \Yaml ;
6+ use Drupal \Core \DependencyInjection \AutowireTrait ;
67use Drupal \Core \Utility \Token ;
78use Drupal \entity_print \Plugin \EntityPrintPluginManagerInterface ;
89use Drupal \os2forms_digital_post \Helper \DigitalPostHelper ;
1213use ItkDev \Serviceplatformen \Service \SF1601 \SF1601 ;
1314use Symfony \Component \Console \Exception \InvalidArgumentException ;
1415use Symfony \Component \Console \Style \SymfonyStyle ;
16+ use Symfony \Component \DependencyInjection \Attribute \Autowire ;
1517use Symfony \Contracts \HttpClient \Exception \ClientExceptionInterface ;
1618
1719/**
1820 * Test commands for digital post.
1921 */
2022class DigitalPostTestCommands extends DrushCommands {
23+ use AutowireTrait;
2124
2225 /**
2326 * Constructor.
2427 */
2528 public function __construct (
29+ #[Autowire(service: DigitalPostHelper::class)]
2630 private readonly DigitalPostHelper $ digitalPostHelper ,
2731 private readonly Token $ token ,
32+ #[Autowire(service: 'plugin.manager.entity_print.print_engine ' )]
2833 private readonly EntityPrintPluginManagerInterface $ entityPrintPluginManager ,
34+ #[Autowire(service: Settings::class)]
2935 private readonly Settings $ digitalPostSettings ,
3036 ) {
3137 }
You can’t perform that action at this time.
0 commit comments