mirror of
https://github.com/shlinkio/shlink.git
synced 2025-01-24 20:33:56 +03:00
19 lines
434 B
PHP
19 lines
434 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shlinkio\Shlink\CLI\ApiKey;
|
|
|
|
use Shlinkio\Shlink\Rest\ApiKey\Model\RoleDefinition;
|
|
use Symfony\Component\Console\Input\InputInterface;
|
|
|
|
interface RoleResolverInterface
|
|
{
|
|
public const AUTHOR_ONLY_PARAM = 'author-only';
|
|
public const DOMAIN_ONLY_PARAM = 'domain-only';
|
|
|
|
/**
|
|
* @return RoleDefinition[]
|
|
*/
|
|
public function determineRoles(InputInterface $input): array;
|
|
}
|