Some wiring up of dependencies to get all the examples running.
If you examples needs additional dependencies, please add them here. However, please check carefully if those deps are really needed. Even if the examples, we try to keep them minimal. Note the most deps are wired up here as mocks only.
76 : void
77 {
79 $this->dic["tpl"] = $this->getTemplateFactory()->getTemplate("tpl.main.html", false, false);
81 $this->dic["refinery"] = new \ILIAS\Refinery\Factory(
82 new ILIAS\Data\Factory(),
84 );
85
87
88 $this->dic["ui.template_factory"] = $this->getTemplateFactory();
89
90 $this->dic["ilCtrl"] = $this->getMockBuilder(\ilCtrl::class)->disableOriginalConstructor()->onlyMethods([
91 "getFormActionByClass","setParameterByClass","saveParameterByClass","getLinkTargetByClass", "isAsynch"
92 ])->getMock();
93 $this->dic["ilCtrl"]->method("getFormActionByClass")->willReturn("Testing");
94 $this->dic["ilCtrl"]->method("getLinkTargetByClass")->willReturn("2");
95 $this->dic["ilCtrl"]->method("isAsynch")->willReturn(false);
96
97 $this->dic["upload"] = $this->getMockBuilder(FileUpload::class)->getMock();
98
99 $this->dic["tree"] = $this->getMockBuilder(ilTree::class)
100 ->disableOriginalConstructor()
101 ->onlyMethods(["getNodeData"])->getMock();
102
103 $this->dic["tree"]->method("getNodeData")->willReturn([
104 "ref_id" => "1",
105 "title" => "mock root node",
106 "type" => "crs"
107 ]);
108
109 $component_factory = $this->createMock(ilComponentFactory::class);
110 $component_factory->method("getActivePluginsInSlot")->willReturn(new ArrayIterator());
111 $this->dic["component.factory"] = $component_factory;
112
114
116 }
Customizing of pimple-DIC for ILIAS.
This HelpTextRetriever simply echo the purpose and the topics for debugging and development purpose.
Responsible for loading the HTTP Service into the dependency injection container of ILIAS.
This is more or less a copy of the removed InitUIFramework file inside the Init component.
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.