mirror of
https://github.com/bitinflow/expose.git
synced 2026-10-31 20:59:09 +00:00
Custom domain support
This commit is contained in:
1 parent
c23af81668
commit
74ac9d2d1a
15 files changed
+594
-31
No files matched your search
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Contracts;
|
||||
|
||||
use React\Promise\PromiseInterface;
|
||||
|
||||
interface DomainRepository
|
||||
{
|
||||
public function getDomains(): PromiseInterface;
|
||||
|
||||
public function getDomainById($id): PromiseInterface;
|
||||
|
||||
public function getDomainByName(string $name): PromiseInterface;
|
||||
|
||||
public function getDomainsByUserId($id): PromiseInterface;
|
||||
|
||||
public function getDomainsByUserIdAndName($id, $name): PromiseInterface;
|
||||
|
||||
public function deleteDomainForUserId($userId, $domainId): PromiseInterface;
|
||||
|
||||
public function storeDomain(array $data): PromiseInterface;
|
||||
|
||||
public function updateDomain($id, array $data): PromiseInterface;
|
||||
}
|
||||
@@ -12,6 +12,8 @@ interface SubdomainRepository
|
||||
|
||||
public function getSubdomainByName(string $name): PromiseInterface;
|
||||
|
||||
public function getSubdomainByNameAndDomain(string $name, string $domain): PromiseInterface;
|
||||
|
||||
public function getSubdomainsByUserId($id): PromiseInterface;
|
||||
|
||||
public function getSubdomainsByUserIdAndName($id, $name): PromiseInterface;
|
||||
|
||||
Reference in new issue
Block a user