Skip to content

Commit

Permalink
add basic command
Browse files Browse the repository at this point in the history
  • Loading branch information
hidabe committed Apr 23, 2017
1 parent 65e5908 commit 4606e03
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/AppBundle/Command/GeneratePdfCommand.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php
// src/AppBundle/Command/GeneratePdfCommand.php
namespace AppBundle\Command;

use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class GeneratePdfCommand extends ContainerAwareCommand
{
protected function configure()
{
$this
->setName('app:generatePdf');
}

protected function execute(InputInterface $input, OutputInterface $output)
{
$output->writeln("Comando funcionando");
}
}

0 comments on commit 4606e03

Please sign in to comment.