Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Symfony\Component\Console\Command;
- use Symfony\Component\Console\Command\Command;
- use Symfony\Component\Console\Input\InputInterface;
- use Symfony\Component\Console\Output\OutputInterface;
- class HelloWorldCommand extends Command
- {
- protected function configure()
- {
- $this->setName('hello:world')
- ->setDescription('Outputs \'Hello World\'');
- }
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- $output->writeln('Hello World');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement