ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.InternalRepoService.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Blog;
22 
24 
26 {
27  protected static array $instance = [];
28 
29  public function __construct(
30  protected InternalDataService $data,
31  protected \ilDBInterface $db
32  ) {
33  }
34 
35  public function settings(): SettingsDBRepository
36  {
37  return self::$instance["settings"] ??= new SettingsDBRepository(
38  $this->db,
39  $this->data
40  );
41  }
42 }
__construct(protected InternalDataService $data, protected \ilDBInterface $db)