Skip to content

Commit cd3e855

Browse files
rimi-itkjekuaitk
authored andcommitted
Updated
1 parent a32eaae commit cd3e855

File tree

2 files changed

+20
-14
lines changed

2 files changed

+20
-14
lines changed

.github/workflows/pr.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-latest
2424
strategy:
2525
matrix:
26-
php-versions: [ '8.1' ]
26+
php-versions: [ '8.3' ]
2727
dependency-version: [ prefer-lowest, prefer-stable ]
2828
steps:
2929
- uses: actions/checkout@master
@@ -59,7 +59,7 @@ jobs:
5959
runs-on: ubuntu-latest
6060
strategy:
6161
matrix:
62-
php-versions: [ '8.1' ]
62+
php-versions: [ '8.3' ]
6363
steps:
6464
- uses: actions/checkout@master
6565
- name: Setup PHP, with composer and extensions
@@ -92,7 +92,7 @@ jobs:
9292
runs-on: ubuntu-latest
9393
strategy:
9494
matrix:
95-
php-versions: [ '8.1' ]
95+
php-versions: [ '8.3' ]
9696
steps:
9797
- uses: actions/checkout@master
9898
- name: Setup PHP, with composer and extensions

modules/os2forms_dawa/src/Plugin/os2web/DataLookup/DatafordelerDataLookup.php

+17-11
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
namespace Drupal\os2forms_dawa\Plugin\os2web\DataLookup;
44

55
use Drupal\Component\Utility\NestedArray;
6+
use Drupal\Core\File\FileSystem;
67
use Drupal\Core\Form\FormStateInterface;
78
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
9+
use Drupal\key\KeyRepository;
10+
use Drupal\key\KeyRepositoryInterface;
811
use Drupal\os2forms_dawa\Entity\DatafordelerMatrikula;
912
use Drupal\os2web_audit\Service\Logger;
1013
use Drupal\os2web_datalookup\Plugin\os2web\DataLookup\DataLookupBase;
@@ -21,37 +24,40 @@
2124
*/
2225
class DatafordelerDataLookup extends DataLookupBase implements DatafordelerDataLookupInterface, ContainerFactoryPluginInterface {
2326

24-
/**
25-
* The HTTP client to fetch the feed data with.
26-
*
27-
* @var \GuzzleHttp\ClientInterface
28-
*/
29-
protected $httpClient;
30-
3127
/**
3228
* {@inheritdoc}
3329
*/
3430
public function __construct(
3531
array $configuration,
3632
$plugin_id,
3733
$plugin_definition,
38-
ClientInterface $httpClient,
34+
protected ClientInterface $httpClient,
3935
Logger $auditLogger,
36+
KeyRepositoryInterface $keyRepository,
37+
FileSystem $fileSystem,
4038
) {
41-
$this->httpClient = $httpClient;
42-
parent::__construct($configuration, $plugin_id, $plugin_definition, $auditLogger);
39+
parent::__construct($configuration, $plugin_id, $plugin_definition, $auditLogger, $keyRepository, $fileSystem);
4340
}
4441

4542
/**
4643
* {@inheritdoc}
4744
*/
4845
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
46+
/** @var Logger $auditLogger */
47+
$auditLogger = $container->get('os2web_audit.logger');
48+
/** @var \Drupal\key\KeyRepositoryInterface $keyRepository */
49+
$keyRepository = $container->get('key.repository');
50+
/** @var \Drupal\Core\File\FileSystem $fileSystem */
51+
$fileSystem = $container->get('file_system');
52+
4953
return new static(
5054
$configuration,
5155
$plugin_id,
5256
$plugin_definition,
5357
$container->get('http_client'),
54-
$container->get('os2web_audit.logger'),
58+
$auditLogger,
59+
$keyRepository,
60+
$fileSystem,
5561
);
5662
}
5763

0 commit comments

Comments
 (0)