Skip to content

Commit cd53560

Browse files
committed
#466: Code cleanup
1 parent c01cfb9 commit cd53560

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

os2forms_rest_api.services.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ services:
77
arguments:
88
- '@entity_type.manager'
99
- '@current_user'
10-
- '@key_auth.authentication.key_auth'
11-
- '@request_stack'
1210

1311
Drupal\os2forms_rest_api\EventSubscriber\WebformAccessEventSubscriber:
1412
arguments:

src/WebformHelper.php

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@
88
use Drupal\Core\Session\AccountProxyInterface;
99
use Drupal\Core\StringTranslation\StringTranslationTrait;
1010
use Drupal\Core\Url;
11-
use Drupal\key_auth\Authentication\Provider\KeyAuth;
1211
use Drupal\webform\WebformInterface;
1312
use Drupal\webform\WebformSubmissionInterface;
14-
use Symfony\Component\HttpFoundation\RequestStack;
1513

1614
/**
1715
* Webform helper for helping with webforms.
@@ -33,28 +31,12 @@ class WebformHelper {
3331
*/
3432
private AccountProxyInterface $currentUser;
3533

36-
/**
37-
* The key authentication service.
38-
*
39-
* @var \Drupal\key_auth\Authentication\Provider\KeyAuth
40-
*/
41-
private KeyAuth $keyAuth;
42-
43-
/**
44-
* The request stack.
45-
*
46-
* @var \Symfony\Component\HttpFoundation\RequestStack
47-
*/
48-
private RequestStack $requestStack;
49-
5034
/**
5135
* Constructor.
5236
*/
53-
public function __construct(EntityTypeManagerInterface $entityTypeManager, AccountProxyInterface $currentUser, KeyAuth $keyAuth, RequestStack $requestStack) {
37+
public function __construct(EntityTypeManagerInterface $entityTypeManager, AccountProxyInterface $currentUser) {
5438
$this->entityTypeManager = $entityTypeManager;
5539
$this->currentUser = $currentUser;
56-
$this->keyAuth = $keyAuth;
57-
$this->requestStack = $requestStack;
5840
}
5941

6042
/**

0 commit comments

Comments
 (0)