Created
February 1, 2018 11:28
-
-
Save ahoulgrave/e7c0451241652b77f0f16853f43327ac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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