File tree Expand file tree Collapse file tree 4 files changed +16
-15
lines changed
modules/os2forms_digital_post Expand file tree Collapse file tree 4 files changed +16
-15
lines changed Original file line number Diff line number Diff line change 8
8
fail-fast : false
9
9
steps :
10
10
- name : Checkout
11
- uses : actions/checkout@v2
11
+ uses : actions/checkout@v4
12
12
with :
13
13
fetch-depth : 2
14
14
39
39
id : composer-cache
40
40
run : echo "::set-output name=dir::$(composer config cache-files-dir)"
41
41
- name : Cache dependencies
42
- uses : actions/cache@v2
42
+ uses : actions/cache@v4
43
43
with :
44
44
path : ${{ steps.composer-cache.outputs.dir }}
45
45
key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
71
71
id : composer-cache
72
72
run : echo "::set-output name=dir::$(composer config cache-files-dir)"
73
73
- name : Cache dependencies
74
- uses : actions/cache@v2
74
+ uses : actions/cache@v4
75
75
with :
76
76
path : ${{ steps.composer-cache.outputs.dir }}
77
77
key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
@@ -104,7 +104,7 @@ jobs:
104
104
id : composer-cache
105
105
run : echo "::set-output name=dir::$(composer config cache-files-dir)"
106
106
- name : Cache dependencies
107
- uses : actions/cache@v2
107
+ uses : actions/cache@v4
108
108
with :
109
109
path : ${{ steps.composer-cache.outputs.dir }}
110
110
key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
@@ -118,12 +118,12 @@ jobs:
118
118
name : markdownlint
119
119
steps :
120
120
- name : Checkout
121
- uses : actions/checkout@v2
121
+ uses : actions/checkout@v4
122
122
- name : Get yarn cache directory path
123
123
id : yarn-cache-dir-path
124
124
run : echo "::set-output name=dir::$(yarn cache dir)"
125
125
- name : Cache yarn packages
126
- uses : actions/cache@v2
126
+ uses : actions/cache@v4
127
127
id : yarn-cache
128
128
with :
129
129
path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ before starting to add changes. Use example [placed in the end of the page](#exa
11
11
12
12
## [ Unreleased]
13
13
14
+ - [ PR-166] ( https://github.com/OS2Forms/os2forms/pull/166 )
15
+ * Fix digital post commands
16
+ * Updated versions in GitHub Actions ` uses ` steps
17
+
14
18
## [ 4.0.0] 2025-03-06
15
19
16
20
- This is an alias for for 3.22.2. Major change is the module removal, which can lead to lack of backward support.
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