ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.InternalDomainService.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Repository;
22
26
28{
30
31 protected static array $instance = [];
32
33 public function __construct(
35 protected InternalRepoService $repo_service,
36 protected InternalDataService $data_service
37 ) {
38 $this->initDomainServices($DIC);
39 }
40
41
42 public function deletion(): Deletion\Deletion
43 {
44 return self::$instance["deletion"] ??= (new Deletion\DomainService(
45 $this->data_service,
46 $this->repo_service,
47 $this
48 ))->deletion();
49 }
50
51 public function clipboard(): ClipboardManager
52 {
53 return self::$instance["clipboard"] ??= new ClipboardManager(
54 $this->repo_service->clipboard()
55 );
56 }
57}
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:36
Manages items in repository clipboard.
__construct(Container $DIC, protected InternalRepoService $repo_service, protected InternalDataService $data_service)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
initDomainServices(\ILIAS\DI\Container $DIC)
global $DIC
Definition: shib_login.php:26