ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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  ),
57  $content_assembler,
58  $copyright_handler,
59  $path_collection,
60  $this->services->editor()->manipulator(),
61  $path_factory,
62  $navigator_factory
63  )
64  );
65  }
66 }