Skip to content

Instantly share code, notes, and snippets.

@alfrekjv
Last active February 16, 2016 23:42
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 alfrekjv/fd8e9da159fa8e0a2b35 to your computer and use it in GitHub Desktop.
Save alfrekjv/fd8e9da159fa8e0a2b35 to your computer and use it in GitHub Desktop.
<?php
namespace Application\Command;
use \Symfony\Component\Console\Command\Command;
use \Symfony\Component\Console\Input\InputArgument;
use \Symfony\Component\Console\Input\InputInterface;
use \Symfony\Component\Console\Input\InputOption;
use \Symfony\Component\Console\Output\OutputInterface;
class QueueCommand extends Command
{
protected function configure()
{
$this->setName('queue:post')
->setDescription('Posting due content from Queue.');
}
protected function execute(InputInterface $input, OutputInterface $output)
{
$output->writeln("Hello world");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment