Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
NHZEX committed Dec 3, 2019
1 parent cbf8032 commit 58aeacb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 48 deletions.
24 changes: 0 additions & 24 deletions src/Command/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
use Symfony\Component\Console\Output\OutputInterface;
use think\console\input\Argument as InputArgument;
use think\console\input\Option as InputOption;
use think\console\output\question\Choice as ChoiceQuestion;
use think\console\output\question\Confirmation as ConfirmationQuestion;

class Create extends AbstractCommand
{
Expand Down Expand Up @@ -51,28 +49,6 @@ protected function configure()
$this->addOption('path', null, InputOption::VALUE_REQUIRED, 'Specify the path in which to create this migration');
}

/**
* Get the confirmation question asking if the user wants to create the
* migrations directory.
*
* @return ConfirmationQuestion
*/
protected function getCreateMigrationDirectoryQuestion()
{
return new ConfirmationQuestion('Create migrations directory? [y]/n ', true);
}

/**
* Get the question that allows the user to select which migration path to use.
*
* @param string[] $paths
* @return ChoiceQuestion
*/
protected function getSelectMigrationPathQuestion(array $paths)
{
return new ChoiceQuestion('Which migrations path would you like to use?', $paths, 0);
}

/**
* Returns the migration path to create the migration in.
*
Expand Down
24 changes: 0 additions & 24 deletions src/Command/SeedCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
use RuntimeException;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Question\ChoiceQuestion;
use Symfony\Component\Console\Question\ConfirmationQuestion;
use think\console\input\Argument as InputArgument;
use think\console\input\Option as InputOption;

Expand All @@ -36,28 +34,6 @@ protected function configure()
));
}

/**
* Get the confirmation question asking if the user wants to create the
* seeds directory.
*
* @return ConfirmationQuestion
*/
protected function getCreateSeedDirectoryQuestion()
{
return new ConfirmationQuestion('Create seeds directory? [y]/n ', true);
}

/**
* Get the question that allows the user to select which seed path to use.
*
* @param string[] $paths
* @return ChoiceQuestion
*/
protected function getSelectSeedPathQuestion(array $paths)
{
return new ChoiceQuestion('Which seeds path would you like to use?', $paths, 0);
}

/**
* Returns the seed path to create the seeder in.
*
Expand Down

0 comments on commit 58aeacb

Please sign in to comment.