Last active
October 9, 2015 19:17
-
-
Save JoshuaEstes/2d2ad13347e24e0d9e6f to your computer and use it in GitHub Desktop.
Symfony2 Validator Component
This file contains hidden or 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 Acme\TutorialBundle\Command; | |
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Output\OutputInterface; | |
use Symfony\Component\Validator\Validation; | |
use Symfony\Component\Validator\Constraints as Assert; | |
class TestCommand extends ContainerAwareCommand | |
{ | |
protected function configure() | |
{ | |
$this->setName('acme:test'); | |
} | |
protected function interact(InputInterface $input, OutputInterface $output) | |
{ | |
} | |
protected function getDialogHelper() | |
{ | |
return $this->getHelperSet()->get('dialog'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment