ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
DigestInitiator.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 
26 {
28 
29  public function __construct(InternalServices $services)
30  {
31  $this->services = $services;
32  }
33 
34  public function init(): Digest
35  {
36  return new Digest(
37  $content_assembler = new ContentAssembler(
38  $path_factory = $this->services->paths()->pathFactory(),
39  $navigator_factory = $this->services->paths()->navigatorFactory(),
40  $this->services->dic()->ui()->factory(),
41  $this->services->dic()->refinery(),
42  $this->services->editor()->presenter(),
43  $path_collection = new PathCollection(
44  $path_factory
45  ),
46  $this->services->editor()->linkFactory(),
47  $copyright_handler = new CopyrightHandler(
48  $this->services->copyright()->repository(),
50  $this->services->OERHarvester()->settings(),
51  $this->services->OERHarvester()->statusRepository(),
52  $this->services->copyright()->identifiersHandler()
53  ),
54  $this->services->dataHelper()->dataHelper(),
55  $vocabulary_adapter = $this->services->editor()->vocabularyAdapter()
56  ),
58  $content_assembler,
59  $copyright_handler,
60  $path_collection,
61  $this->services->editor()->manipulator(),
62  $path_factory,
63  $navigator_factory,
64  $vocabulary_adapter
65  )
66  );
67  }
68 }