Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
rimi-itk committed Dec 20, 2024
1 parent a8dc3c8 commit fea276d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [ '8.1' ]
php-versions: [ '8.3' ]
dependency-version: [ prefer-lowest, prefer-stable ]
steps:
- uses: actions/checkout@master
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [ '8.1' ]
php-versions: [ '8.3' ]
steps:
- uses: actions/checkout@master
- name: Setup PHP, with composer and extensions
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [ '8.1' ]
php-versions: [ '8.3' ]
steps:
- uses: actions/checkout@master
- name: Setup PHP, with composer and extensions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
namespace Drupal\os2forms_dawa\Plugin\os2web\DataLookup;

use Drupal\Component\Utility\NestedArray;
use Drupal\Core\File\FileSystem;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\key\KeyRepository;
use Drupal\key\KeyRepositoryInterface;
use Drupal\os2forms_dawa\Entity\DatafordelerMatrikula;
use Drupal\os2web_audit\Service\Logger;
use Drupal\os2web_datalookup\Plugin\os2web\DataLookup\DataLookupBase;
Expand All @@ -21,37 +24,40 @@
*/
class DatafordelerDataLookup extends DataLookupBase implements DatafordelerDataLookupInterface, ContainerFactoryPluginInterface {

/**
* The HTTP client to fetch the feed data with.
*
* @var \GuzzleHttp\ClientInterface
*/
protected $httpClient;

/**
* {@inheritdoc}
*/
public function __construct(
array $configuration,
$plugin_id,
$plugin_definition,
ClientInterface $httpClient,
protected ClientInterface $httpClient,
Logger $auditLogger,
KeyRepositoryInterface $keyRepository,
FileSystem $fileSystem,
) {
$this->httpClient = $httpClient;
parent::__construct($configuration, $plugin_id, $plugin_definition, $auditLogger);
parent::__construct($configuration, $plugin_id, $plugin_definition, $auditLogger, $keyRepository, $fileSystem);
}

/**
* {@inheritdoc}
*/
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
/** @var Logger $auditLogger */
$auditLogger = $container->get('os2web_audit.logger');
/** @var \Drupal\key\KeyRepositoryInterface $keyRepository */
$keyRepository = $container->get('key.repository');
/** @var \Drupal\Core\File\FileSystem $fileSystem */
$fileSystem = $container->get('file_system');

return new static(
$configuration,
$plugin_id,
$plugin_definition,
$container->get('http_client'),
$container->get('os2web_audit.logger'),
$auditLogger,
$keyRepository,
$fileSystem,
);
}

Expand Down

0 comments on commit fea276d

Please sign in to comment.