Skip to content

Commit 507ffb3

Browse files
committed
Merge branch 'feature/os2web_key' into feature/os2web_key-hashi-corp-vault
2 parents 21dc864 + cd3e855 commit 507ffb3

File tree

10 files changed

+39
-83
lines changed

10 files changed

+39
-83
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ before starting to add changes. Use example [placed in the end of the page](#exa
1616
- Added support for `os2web_key` in Fasit handler.
1717
- Switched from saving settings in key value store to config, i.e
1818
the module needs to be reconfigured.
19+
- Removed modules ldap_auth, logging_alerts, maillog
20+
21+
## [3.21.2] 2025-01-07
22+
23+
- Adds missing `http-message-util` requirement and use statement.
24+
- Runs code-analysis on `os2forms_fbs_handler` module.
1925

2026
## [3.21.1] 2025-01-06
2127

@@ -334,7 +340,8 @@ before starting to add changes. Use example [placed in the end of the page](#exa
334340
- Security in case of vulnerabilities.
335341
```
336342

337-
[Unreleased]: https://github.com/OS2Forms/os2forms/compare/3.21.1...HEAD
343+
[Unreleased]: https://github.com/OS2Forms/os2forms/compare/3.21.2...HEAD
344+
[3.21.2]: https://github.com/OS2Forms/os2forms/compare/3.21.1...3.21.2
338345
[3.21.1]: https://github.com/OS2Forms/os2forms/compare/3.21.0...3.21.1
339346
[3.21.0]: https://github.com/OS2Forms/os2forms/compare/3.20.1...3.21.0
340347
[3.20.1]: https://github.com/OS2Forms/os2forms/compare/3.20.0...3.20.1

composer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"dompdf/dompdf": "^2.0",
1212
"drupal/admin_toolbar": "^3.0",
1313
"drupal/advancedqueue": "^1.0",
14+
"drupal/cache_control_override": "^1.1|^2.0",
1415
"drupal/clientside_validation": "^4.0",
1516
"drupal/coc_forms_auto_export": "^2.0@alpha",
1617
"drupal/config_entity_revisions": "dev-2.0.x",
@@ -19,14 +20,13 @@
1920
"drupal/entity_print": "^2.1",
2021
"drupal/eu_cookie_compliance": "^1.8",
2122
"drupal/events_logging": "^2.0@beta",
23+
"drupal/gin": "^3.0-rc",
2224
"drupal/honeypot": "^2.0",
2325
"drupal/image_widget_crop": "^2.3",
2426
"drupal/ldap": "^4.2",
25-
"drupal/ldap_auth": "^1.17",
2627
"drupal/leaflet": "^10.0",
2728
"drupal/leaflet_layers": "^1.1",
2829
"drupal/libraries": "^4.0",
29-
"drupal/logging_alerts": "^2.0",
3030
"drupal/maestro": "^3.1",
3131
"drupal/mailsystem": "^4.1",
3232
"drupal/masquerade": "^2.0@RC",
@@ -53,6 +53,7 @@
5353
"drupal/webform_validation": "^2.0",
5454
"drupal/webform_views": "^5.0@alpha",
5555
"drupal/workflow_participants": "^3.0@RC",
56+
"fig/http-message-util": "^1.1",
5657
"http-interop/http-factory-guzzle": "^1.0.0",
5758
"itk-dev/beskedfordeler-drupal": "^1.0",
5859
"itk-dev/serviceplatformen": "^1.5",
@@ -61,6 +62,7 @@
6162
"os2web/os2web_datalookup": "dev-feature/os2web_key as 2.0.0",
6263
"os2web/os2web_key": "^1.0",
6364
"os2web/os2web_nemlogin": "^1.0",
65+
"os2web/os2web_simplesaml": "dev-master",
6466
"php-http/guzzle7-adapter": "^1.0",
6567
"phpoffice/phpword": "^0.18.2",
6668
"symfony/options-resolver": "^5.4 || ^6.0",
@@ -71,7 +73,6 @@
7173
"require-dev": {
7274
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
7375
"drupal/coder": "^8.3",
74-
"drupal/maillog": "^1.0",
7576
"ergebnis/composer-normalize": "^2.42",
7677
"mglaman/phpstan-drupal": "^1.1",
7778
"phpstan/extension-installer": "^1.3",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use Drupal\Core\File\FileSystem;
77
use Drupal\Core\Form\FormStateInterface;
88
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
9+
use Drupal\key\KeyRepository;
910
use Drupal\key\KeyRepositoryInterface;
1011
use Drupal\os2forms_dawa\Entity\DatafordelerMatrikula;
1112
use Drupal\os2web_audit\Service\Logger;

modules/os2forms_digital_post/src/Helper/CertificateLocatorHelper.php

Lines changed: 0 additions & 79 deletions
This file was deleted.

modules/os2forms_fbs_handler/src/Client/FBS.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Drupal\os2forms_fbs_handler\Client\Model\Guardian;
66
use Drupal\os2forms_fbs_handler\Client\Model\Patron;
7+
use Fig\Http\Message\RequestMethodInterface;
78
use GuzzleHttp\Client;
89
use Symfony\Component\HttpFoundation\Request;
910

@@ -242,6 +243,8 @@ public function createGuardian(Patron $patron, Guardian $guardian): int {
242243
*
243244
* @throws \GuzzleHttp\Exception\GuzzleException
244245
* @throws \JsonException
246+
*
247+
* @phpstan-param array<mixed>|string $data
245248
*/
246249
private function request(string $uri, array|string $data, string $method = Request::METHOD_POST): mixed {
247250
$url = rtrim($this->endpoint, '/\\');

modules/os2forms_fbs_handler/src/Client/Model/Guardian.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ public function __construct(
2222
*
2323
* @return array
2424
* Array with field required by FBS calls.
25+
*
26+
* @phpstan-return array<string, string>
2527
*/
2628
public function toArray(): array {
2729
return [

modules/os2forms_fbs_handler/src/Client/Model/Patron.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ final class Patron {
99

1010
/**
1111
* Default constructor.
12+
*
13+
* @phpstan-param array<mixed>|null $notificationProtocols
14+
* @phpstan-param array<mixed>|null $onHold
15+
* @phpstan-param array<mixed>|null $emailAddresses
1216
*/
1317
public function __construct(
1418
public readonly ?string $patronId = NULL,
@@ -35,6 +39,8 @@ public function __construct(
3539
*
3640
* @return array
3741
* Array with field required by FBS calls.
42+
*
43+
* @phpstan-return array<string, string>
3844
*/
3945
public function toArray(): array {
4046
return [

modules/os2forms_fbs_handler/src/Plugin/AdvancedQueue/JobType/FbsCreateUser.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ final class FbsCreateUser extends JobTypeBase implements ContainerFactoryPluginI
3535

3636
/**
3737
* {@inheritdoc}
38+
*
39+
* @phpstan-param array<mixed> $configuration
3840
*/
3941
public function __construct(
4042
array $configuration,
@@ -50,6 +52,8 @@ public function __construct(
5052

5153
/**
5254
* {@inheritdoc}
55+
*
56+
* @phpstan-param array<mixed> $configuration
5357
*/
5458
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
5559
return new static(

modules/os2forms_fbs_handler/src/Plugin/WebformHandler/FbsWebformHandler.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ final class FbsWebformHandler extends WebformHandlerBase {
4545

4646
/**
4747
* Constructs an FbsWebformHandler object.
48+
*
49+
* @phpstan-param array<mixed> $configuration
4850
*/
4951
public function __construct(
5052
array $configuration,
@@ -70,6 +72,8 @@ public function __construct(
7072

7173
/**
7274
* {@inheritdoc}
75+
*
76+
* @phpstan-param array<mixed> $configuration
7377
*/
7478
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
7579
return new static(
@@ -87,6 +91,10 @@ public static function create(ContainerInterface $container, array $configuratio
8791

8892
/**
8993
* {@inheritdoc}
94+
*
95+
* @phpstan-param array<mixed> $form
96+
*
97+
* @phpstan-return array<mixed>
9098
*/
9199
public function buildConfigurationForm(array $form, FormStateInterface $form_state): array {
92100
if (is_null($this->getQueue())) {
@@ -143,6 +151,8 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta
143151

144152
/**
145153
* {@inheritdoc}
154+
*
155+
* @phpstan-param array<mixed> $form
146156
*/
147157
public function submitConfigurationForm(array &$form, FormStateInterface $form_state): void {
148158
parent::submitConfigurationForm($form, $form_state);

phpstan.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ parameters:
22
level: 6
33
paths:
44
- modules/os2forms_digital_post/
5+
- modules/os2forms_fbs_handler/
56
excludePaths:
67
# @see https://github.com/mglaman/drupal-check/issues/261#issuecomment-1030141772/
78
- vendor

0 commit comments

Comments
 (0)