Applied API role specs to domains list

This commit is contained in:
Alejandro Celaya
2021-01-04 15:55:59 +01:00
parent 262a06f624
commit 19834f6715
9 changed files with 40 additions and 16 deletions

View File

@@ -5,11 +5,12 @@ declare(strict_types=1);
namespace Shlinkio\Shlink\Core\Domain;
use Shlinkio\Shlink\Core\Domain\Model\DomainItem;
use Shlinkio\Shlink\Rest\Entity\ApiKey;
interface DomainServiceInterface
{
/**
* @return DomainItem[]
*/
public function listDomains(): array;
public function listDomains(?ApiKey $apiKey = null): array;
}