Advertisement
Guest User

Untitled

a guest
May 29th, 2015
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. <?php
  2.  
  3. namespace Symfony\Component\Console\Command;
  4.  
  5. use Symfony\Component\Console\Command\Command;
  6. use Symfony\Component\Console\Input\InputInterface;
  7. use Symfony\Component\Console\Output\OutputInterface;
  8.  
  9. class HelloWorldCommand extends Command
  10. {
  11. protected function configure()
  12. {
  13. $this->setName('hello:world')
  14. ->setDescription('Outputs \'Hello World\'');
  15. }
  16.  
  17. protected function execute(InputInterface $input, OutputInterface $output)
  18. {
  19. $output->writeln('Hello World');
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement