PHP Class ImboCli\Command\AddPublicKey

Author: Espen Hovlandsdal ([email protected])
Inheritance: extends ImboCli\Command\Command
ファイルを表示 Open project: imbo/imbo Class Usage Examples

Public Methods

Method Description
__construct ( )

Protected Methods

Method Description
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )

Private Methods

Method Description
askForAnotherAclRule ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : boolean Ask the user if she wants to add more ACL-rules
askForCustomResources ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : array | string Ask the user which custom resources the public key should have access to
askForPrivateKey ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : string Ask the user for a private key (or generate one if user does not specify)
askForResources ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : array Ask user which resources the public key should have access to
askForSpecificResources ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : array Ask user which specific resources the public key should have access to
askForUsers ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : array | string Ask the user which users the public key should have access to (for the current ACL-rule)
getAclAdapter ( ) : Imbo\Auth\AccessControl\Adapter\MutableAdapterInterface Get the configured ACL adapter and ensure it is mutable

Method Details

__construct() public method

public __construct ( )

execute() protected method

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface