refactor command

This commit is contained in:
Nicolas Le Goff
2012-06-01 11:13:12 +02:00
parent 67fe8fd9e4
commit 49900878c8
24 changed files with 110 additions and 84 deletions

View File

@@ -19,8 +19,9 @@ use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Alchemy\Phrasea\Command\Command;
class module_console_fieldsMerge extends module_console_PhraseanetCommand
class module_console_fieldsMerge extends Command
{
public function __construct($name = null)
@@ -44,14 +45,14 @@ class module_console_fieldsMerge extends module_console_PhraseanetCommand
return $this;
}
public function needPhraseaInstalled()
public function requireSetup()
{
return true;
}
public function execute(InputInterface $input, OutputInterface $output)
{
if ( ! $this->checkPhraseaInstall($output)) {
if ( ! $this->checkSetup($output)) {
return 1;
}