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 88 fail-fast : false
99 steps :
1010 - name : Checkout
11- uses : actions/checkout@v2
11+ uses : actions/checkout@v4
1212 with :
1313 fetch-depth : 2
1414
3939 id : composer-cache
4040 run : echo "::set-output name=dir::$(composer config cache-files-dir)"
4141 - name : Cache dependencies
42- uses : actions/cache@v2
42+ uses : actions/cache@v4
4343 with :
4444 path : ${{ steps.composer-cache.outputs.dir }}
4545 key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
7171 id : composer-cache
7272 run : echo "::set-output name=dir::$(composer config cache-files-dir)"
7373 - name : Cache dependencies
74- uses : actions/cache@v2
74+ uses : actions/cache@v4
7575 with :
7676 path : ${{ steps.composer-cache.outputs.dir }}
7777 key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
@@ -104,7 +104,7 @@ jobs:
104104 id : composer-cache
105105 run : echo "::set-output name=dir::$(composer config cache-files-dir)"
106106 - name : Cache dependencies
107- uses : actions/cache@v2
107+ uses : actions/cache@v4
108108 with :
109109 path : ${{ steps.composer-cache.outputs.dir }}
110110 key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
@@ -118,12 +118,12 @@ jobs:
118118 name : markdownlint
119119 steps :
120120 - name : Checkout
121- uses : actions/checkout@v2
121+ uses : actions/checkout@v4
122122 - name : Get yarn cache directory path
123123 id : yarn-cache-dir-path
124124 run : echo "::set-output name=dir::$(yarn cache dir)"
125125 - name : Cache yarn packages
126- uses : actions/cache@v2
126+ uses : actions/cache@v4
127127 id : yarn-cache
128128 with :
129129 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
1111
1212## [ Unreleased]
1313
14+ - [ PR-166] ( https://github.com/OS2Forms/os2forms/pull/166 )
15+ * Fix digital post commands
16+ * Updated versions in GitHub Actions ` uses ` steps
17+
1418## [ 4.0.0] 2025-03-06
1519
1620- 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 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