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.
71 : void
72 {
74 $this->dic["tpl"] = $this->getTemplateFactory()->getTemplate("tpl.main.html", false, false);
76 $this->dic["refinery"] = new \ILIAS\Refinery\Factory(
77 new ILIAS\Data\Factory(),
79 );
80
82
83 $this->dic["ui.template_factory"] = $this->getTemplateFactory();
84
85 $this->dic["ilCtrl"] = $this->getMockBuilder(\ilCtrl::class)->disableOriginalConstructor()->onlyMethods([
86 "getFormActionByClass","setParameterByClass","saveParameterByClass","getLinkTargetByClass", "isAsynch"
87 ])->getMock();
88 $this->dic["ilCtrl"]->method("getFormActionByClass")->willReturn("Testing");
89 $this->dic["ilCtrl"]->method("getLinkTargetByClass")->willReturn("2");
90 $this->dic["ilCtrl"]->method("isAsynch")->willReturn(false);
91
92 $this->dic["upload"] = $this->getMockBuilder(FileUpload::class)->getMock();
93
94 $this->dic["tree"] = $this->getMockBuilder(ilTree::class)
95 ->disableOriginalConstructor()
96 ->onlyMethods(["getNodeData"])->getMock();
97
98 $this->dic["tree"]->method("getNodeData")->willReturn([
99 "ref_id" => "1",
100 "title" => "mock root node",
101 "type" => "crs"
102 ]);
103
104 $component_factory = $this->createMock(ilComponentFactory::class);
105 $component_factory->method("getActivePluginsInSlot")->willReturn(new ArrayIterator());
106 $this->dic["component.factory"] = $component_factory;
107
109
111 }
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.