33namespace Drupal \os2forms_dawa \Plugin \os2web \DataLookup ;
44
55use Drupal \Component \Utility \NestedArray ;
6+ use Drupal \Core \File \FileSystem ;
67use Drupal \Core \Form \FormStateInterface ;
78use Drupal \Core \Plugin \ContainerFactoryPluginInterface ;
9+ use Drupal \key \KeyRepositoryInterface ;
810use Drupal \os2forms_dawa \Entity \DatafordelerMatrikula ;
911use Drupal \os2web_audit \Service \Logger ;
1012use Drupal \os2web_datalookup \Plugin \os2web \DataLookup \DataLookupBase ;
@@ -30,20 +32,31 @@ public function __construct(
3032 $ plugin_definition ,
3133 protected ClientInterface $ httpClient ,
3234 Logger $ auditLogger ,
35+ KeyRepositoryInterface $ keyRepository ,
36+ FileSystem $ fileSystem ,
3337 ) {
34- parent ::__construct ($ configuration , $ plugin_id , $ plugin_definition , $ auditLogger );
38+ parent ::__construct ($ configuration , $ plugin_id , $ plugin_definition , $ auditLogger, $ keyRepository , $ fileSystem );
3539 }
3640
3741 /**
3842 * {@inheritdoc}
3943 */
4044 public static function create (ContainerInterface $ container , array $ configuration , $ plugin_id , $ plugin_definition ) {
45+ /** @var \Drupal\os2web_audit\Service\Logger $auditLogger */
46+ $ auditLogger = $ container ->get ('os2web_audit.logger ' );
47+ /** @var \Drupal\key\KeyRepositoryInterface $keyRepository */
48+ $ keyRepository = $ container ->get ('key.repository ' );
49+ /** @var \Drupal\Core\File\FileSystem $fileSystem */
50+ $ fileSystem = $ container ->get ('file_system ' );
51+
4152 return new static (
4253 $ configuration ,
4354 $ plugin_id ,
4455 $ plugin_definition ,
4556 $ container ->get ('http_client ' ),
46- $ container ->get ('os2web_audit.logger ' ),
57+ $ auditLogger ,
58+ $ keyRepository ,
59+ $ fileSystem ,
4760 );
4861 }
4962
0 commit comments