ILIAS  trunk Revision v12.0_alpha-1227-g7ff6d300864
Services.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24use ILIAS\MetaData\OERHarvester\Services\Services as PublishingServices;
25use ilMDSettings;
31use ILIAS\MetaData\OERExposer\OAIPMH\HandlerInterface as OAIPMHHandlerInterface;
33
35{
36 protected OAIPMHHandlerInterface $oaipmh_handler;
37
38 public function __construct(
39 protected Container $dic,
40 protected PublishingServices $publishing_services,
41 ) {
42 }
43
44 public function OAIPMHHandler(): OAIPMHHandlerInterface
45 {
46 return $this->oaipmh_handler ??= new OAIPMHHandler(
47 $this->dic->logger()->meta(),
48 $settings = ilMDSettings::_getInstance(),
49 $http_wrapper = new HTTPWrapper(
50 $this->dic->http(),
51 $this->dic->refinery()
52 ),
53 new RequestParser($http_wrapper),
55 new Writer(),
56 $settings,
57 $this->publishing_services->exposedRecordsRepository(),
58 new TokenHandler()
59 )
60 );
61 }
62}
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:36
OAIPMHHandlerInterface $oaipmh_handler
Definition: Services.php:36
__construct(protected Container $dic, protected PublishingServices $publishing_services,)
Definition: Services.php:38
$dic
Definition: ltiresult.php:33