ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
Service.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
28use ILIAS\Data\Factory as DataFactory;
36
38{
40
41 public function __construct(
42 protected Container $dic
43 ) {
44 }
45
46 public function result(): ResultPresenter
47 {
48 $lng = $this->dic->language();
49 $lng->loadLanguageModule('search');
50 $lng->loadLanguageModule('user');
51 $data_factory = new DataFactory();
52 $sanitizer = new SanitizerImpl($this->dic->refinery());
53 $access_checker = new AccessCheckerImpl($this->dic->access());
54 $subitem_properties_factory = new SubitemPropertiesFactoryImpl();
55 return $this->result_presenter ??= new ResultPresenterImpl(
57 $this->dic->ui()->factory(),
58 $lng,
59 $sanitizer
60 ),
61 new ObjectPropertiesAggregatorImpl(
62 $access_checker,
63 $this->dic['objDefinition'],
64 $lng,
65 $this->dic['static_url'],
66 $data_factory
67 ),
68 new SubitemPropertiesAggregatorImpl(
69 $this->dic,
70 $subitem_properties_factory
71 ),
72 $subitem_properties_factory,
73 new CopyrightHelperImpl($this->dic->learningObjectMetadata()),
74 $access_checker,
75 $sanitizer,
76 new UserPropertiesAggregatorImpl(
77 $lng,
78 $this->dic['user']->getProfile(),
79 $this->dic->ctrl(),
80 $data_factory
81 )
82 );
83 }
84}
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:38
Builds data types.
Definition: Factory.php:36
__construct(protected Container $dic)
Definition: Service.php:41
global $lng
Definition: privfeed.php:26