Permalink
Browse files

Makes command name configurable in the constructor

  • Loading branch information...
1 parent a8fd92e commit b008f49010dbe23d3537ba4e50e8628ee0bc96b6 @GromNaN committed Dec 30, 2013
Showing with 8 additions and 1 deletion.
  1. +8 −1 src/Symfony/Bridge/Twig/Command/LintCommand.php
@@ -27,6 +27,14 @@ class LintCommand extends Command
private $twig;
/**
+ * {@inheritDoc}
+ */
+ public function __construct($name = 'twig:lint')
+ {
+ parent::__construct($name);
+ }
+
+ /**
* Sets the twig environment
*
* @param \Twig_Environment $twig
@@ -47,7 +55,6 @@ protected function getTwigEnvironment()
protected function configure()
{
$this
- ->setName('twig:lint')
->setDescription('Lints a template and outputs encountered errors')
->addArgument('filename')
->setHelp(<<<EOF

0 comments on commit b008f49

Please sign in to comment.