ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
class.InternalRepoService.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Blog;
22 
25 
27 {
28  protected static array $instance = [];
29 
30  public function __construct(
31  protected InternalDataService $data,
32  protected \ilDBInterface $db
33  ) {
34  }
35 
36  public function settings(): SettingsDBRepository
37  {
38  return self::$instance["settings"] ??= new SettingsDBRepository(
39  $this->db,
40  $this->data
41  );
42  }
43 
44  public function posting(): PostingDBRepository
45  {
46  return self::$instance["posting"] ??= new PostingDBRepository(
47  $this->db,
48  $this->data
49  );
50  }
51 }
__construct(protected InternalDataService $data, protected \ilDBInterface $db)