ILIAS  trunk Revision v12.0_alpha-1221-g4e438232683
Services.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23use ILIAS\MetaData\Editor\Full\Services\InternalServices as FullEditorInternalServices;
30use ILIAS\DI\Container as GlobalContainer;
32use ILIAS\MetaData\Repository\Services\Services as RepositoryServices;
33use ILIAS\MetaData\DataHelper\Services\Services as DataHelperServices;
34use ILIAS\MetaData\Editor\Services\InternalServices as InternalEditorServices;
35
37{
40 protected FullEditorInternalServices $internal_services;
41
42 public function __construct(
43 protected GlobalContainer $dic,
44 protected InternalEditorServices $internal_editor_services,
45 protected PathServices $path_services,
46 protected RepositoryServices $repository_services,
47 protected DataHelperServices $data_helper_services
48 ) {
49 }
50
51 public function fullEditor(): FullEditor
52 {
53 return $this->full_editor ??= new FullEditor(
54 $this->internal_editor_services->dictionary(),
55 $this->path_services->navigatorFactory(),
56 new FormContent(
57 $this->internal()->actions(),
58 $this->internal()->formFactory()
59 ),
60 new TableContent(
61 $this->internal()->actions(),
62 $this->internal()->tableFactory()
63 ),
64 $panel_content = new PanelContent(
65 $this->internal()->actions(),
66 $this->internal()->propertiesFetcher(),
67 $ui_factory = $this->dic->ui()->factory(),
68 $presenter = $this->internal_editor_services->presenter()
69 ),
70 new RootContent(
71 $this->internal()->actions(),
72 $ui_factory,
73 $presenter,
74 $panel_content
75 ),
76 );
77 }
78
80 {
81 return $this->manipulator_adapter ??= new ManipulatorAdapter(
82 $this->internal_editor_services->manipulator(),
83 $this->internal()->formFactory(),
84 $this->path_services->pathFactory(),
85 $this->path_services->navigatorFactory()
86 );
87 }
88
89 protected function internal(): InternalServices
90 {
91 return $this->internal_services ??= new FullEditorInternalServices(
92 $this->dic,
97 );
98 }
99}
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:36
function $this $this $this $this data_helper_services
Definition: Services.php:97
__construct(protected GlobalContainer $dic, protected InternalEditorServices $internal_editor_services, protected PathServices $path_services, protected RepositoryServices $repository_services, protected DataHelperServices $data_helper_services)
Definition: Services.php:42
FullEditorInternalServices $internal_services
Definition: Services.php:40
function $this $this $this internal_editor_services
Definition: Services.php:95
$dic
Definition: ltiresult.php:33