src/Commands/DBGenerate.php 1 location
|
@@ 30-41 (lines=12) @@
|
| 27 |
|
* @param InputInterface $input |
| 28 |
|
* @param OutputInterface $output |
| 29 |
|
*/ |
| 30 |
|
protected function execute(InputInterface $input, OutputInterface $output) |
| 31 |
|
{ |
| 32 |
|
$config = Config::getInstance($this->configArray); |
| 33 |
|
|
| 34 |
|
$creator = new DirectoryCreator($config); |
| 35 |
|
|
| 36 |
|
$creator->create(); |
| 37 |
|
|
| 38 |
|
foreach ($creator->getLog() as $message) { |
| 39 |
|
$output->writeln($message); |
| 40 |
|
} |
| 41 |
|
} |
| 42 |
|
} |
| 43 |
|
|
src/Commands/MakeSeeder.php 1 location
|
@@ 33-44 (lines=12) @@
|
| 30 |
|
* @param InputInterface $input |
| 31 |
|
* @param OutputInterface $output |
| 32 |
|
*/ |
| 33 |
|
protected function execute(InputInterface $input, OutputInterface $output) |
| 34 |
|
{ |
| 35 |
|
$name = $input->getArgument('name'); |
| 36 |
|
|
| 37 |
|
$config = Config::getInstance($this->configArray); |
| 38 |
|
|
| 39 |
|
$creator = new SeederCreator($config); |
| 40 |
|
|
| 41 |
|
$creator->create($name); |
| 42 |
|
|
| 43 |
|
$output->writeln("<info>Successfully created seeder {$name}.</info>"); |
| 44 |
|
} |
| 45 |
|
} |
| 46 |
|
|