Kirby\Cli\Command\Make\User::execute PHP Method

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
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        if (!$this->isInstalled()) {
            throw new RuntimeException('Invalid Kirby installation');
        }
        $user = $this->site()->users()->create(['username' => $input->getOption('username'), 'password' => $input->getOption('password'), 'email' => $input->getOption('email'), 'role' => 'admin', 'language' => 'en']);
        $output->writeln('<comment>The user "' . $user->username() . '" has been created</comment>');
    }