Skip to content

Instantly share code, notes, and snippets.

@ahoulgrave
Created February 1, 2018 11:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahoulgrave/e7c0451241652b77f0f16853f43327ac to your computer and use it in GitHub Desktop.
Save ahoulgrave/e7c0451241652b77f0f16853f43327ac to your computer and use it in GitHub Desktop.
<?php
namespace App\Command;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
/**
* Class MyCommand
*
* @package App\Command
*/
class MyCommand extends Command
{
/**
* @return void
*/
protected function configure(): void
{
$this->setName('my:command');
}
/**
* @param InputInterface $input
* @param OutputInterface $output
*
* @return void
*/
protected function execute(InputInterface $input, OutputInterface $output): void
{
$output->writeln('My awesome command!');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment