ILIAS  release_8 Revision v8.23
trait.GlobalDICDomainServices.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
21 namespace ILIAS\Repository;
22 
27 use ILIAS\Refinery;
28 
33 {
34  private \ILIAS\DI\Container $DIC;
35 
36  protected function initDomainServices(\ILIAS\DI\Container $DIC): void
37  {
38  $this->DIC = $DIC;
39  }
40 
41  public function repositoryTree(): \ilTree
42  {
43  return $this->DIC->repositoryTree();
44  }
45 
46  public function access(): \ilAccessHandler
47  {
48  return $this->DIC->access();
49  }
50 
51  public function rbac(): RBACServices
52  {
53  return $this->DIC->rbac();
54  }
55 
56  public function lng(): \ilLanguage
57  {
58  return $this->DIC->language();
59  }
60 
61  public function user(): \ilObjUser
62  {
63  return $this->DIC->user();
64  }
65 
66  public function logger(): LoggingServices
67  {
68  return $this->DIC->logger();
69  }
70 
71  public function refinery(): Refinery\Factory
72  {
73  return $this->DIC->refinery();
74  }
75 
76  public function filesystem(): Filesystems
77  {
78  return $this->DIC->filesystem();
79  }
80 
82  {
83  return $this->DIC->resourceStorage();
84  }
85 
86  public function event(): \ilAppEventHandler
87  {
88  return $this->DIC->event();
89  }
90 
91  public function settings(): \ilSetting
92  {
93  return $this->DIC->settings();
94  }
95 
97  {
98  return $this->DIC["objDefinition"];
99  }
100 }
Global event handler.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: ByTrying.php:21
Provides fluid interface to LoggingServices.
Class ChatMainBarProvider .
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
initDomainServices(\ILIAS\DI\Container $DIC)
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:31
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: feed.php:28
parses the objects.xml it handles the xml-description of all ilias objects
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class HTTPServicesTest.
Provides fluid interface to RBAC services.
Class Filesystems.
Definition: Filesystems.php:29