/** * {@inheritdoc} */ protected function execute(InputInterface $input, OutputInterface $output) { $token = $this->registerTokens->addToken(); $link = sprintf('/register/?token=%s', $token); $output->writeln(sprintf('<info>%s</info>', $link)); }