<?php // src/AppBundle/Command/CreateUserCommand.php namespace AppBundle\Command; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class CreateUserCommand extends Command { /** * Configures your command */ protected function configure() { $this->setName('app:create-user'); $this->setDescription('creates a description'); $this->setHelp('This creates a user'); } /** * @param InputInterface $input * @param OutputInterface $output * @return bool */ protected function execute(InputInterface $input, OutputInterface $output) { $output->writeln( [ 'User Creator', '============', '' ]); $output->writeLn('Whoah!'); $output->writeLn(['You are about to fuckup all users','Now you are at the botton of all']); return true; } }