2025-05-04 07:52:26 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace Appwrite\Platform\Modules\Databases\Services;
|
|
|
|
|
|
2025-05-08 10:08:07 +00:00
|
|
|
use Appwrite\Platform\Modules\Databases\Services\Registry\Collections as CollectionsRegistry;
|
|
|
|
|
use Appwrite\Platform\Modules\Databases\Services\Registry\Databases as DatabasesRegistry;
|
|
|
|
|
use Appwrite\Platform\Modules\Databases\Services\Registry\Tables as TablesRegistry;
|
2025-05-04 07:52:26 +00:00
|
|
|
use Utopia\Platform\Service;
|
|
|
|
|
|
|
|
|
|
class Http extends Service
|
|
|
|
|
{
|
|
|
|
|
public function __construct()
|
|
|
|
|
{
|
|
|
|
|
$this->type = Service::TYPE_HTTP;
|
|
|
|
|
|
2025-05-08 10:08:07 +00:00
|
|
|
foreach ([
|
|
|
|
|
DatabasesRegistry::class,
|
|
|
|
|
CollectionsRegistry::class,
|
|
|
|
|
TablesRegistry::class,
|
|
|
|
|
] as $registrar) {
|
|
|
|
|
new $registrar($this);
|
|
|
|
|
}
|
2025-05-04 07:52:26 +00:00
|
|
|
}
|
|
|
|
|
}
|