mirror of
https://github.com/sigmasternchen/useful-api.org
synced 2025-03-15 07:58:55 +00:00
19 lines
395 B
PHP
19 lines
395 B
PHP
![]() |
<?php
|
||
|
|
||
|
require_once(__DIR__ . "/repositories/Logs.php");
|
||
|
|
||
|
class Repositories {
|
||
|
private $map = [];
|
||
|
|
||
|
public function __construct(PDO $connection) {
|
||
|
$this->map[Logs::class] = new Logs($connection);
|
||
|
}
|
||
|
|
||
|
public function logs(): Logs {
|
||
|
return $this->map[Logs::class];
|
||
|
}
|
||
|
}
|
||
|
|
||
|
return function(PDO $connection): Repositories {
|
||
|
return new Repositories($connection);
|
||
|
};
|