src/Phinx/Console/Command/Breakpoint.php 1 location
|
@@ 71-76 (lines=6) @@
|
| 68 |
|
$set = $input->getOption('set'); |
| 69 |
|
$unset = $input->getOption('unset'); |
| 70 |
|
|
| 71 |
|
if ($environment === null) { |
| 72 |
|
$environment = $this->getConfig()->getDefaultEnvironment(); |
| 73 |
|
$output->writeln('<comment>warning</comment> no environment specified, defaulting to: ' . $environment); |
| 74 |
|
} else { |
| 75 |
|
$output->writeln('<info>using environment</info> ' . $environment); |
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
if (!$this->getConfig()->hasEnvironment($environment)) { |
| 79 |
|
$output->writeln(sprintf('<error>The environment "%s" does not exist</error>', $environment)); |
src/Phinx/Console/Command/Migrate.php 1 location
|
@@ 70-75 (lines=6) @@
|
| 67 |
|
$date = $input->getOption('date'); |
| 68 |
|
$fake = (bool)$input->getOption('fake'); |
| 69 |
|
|
| 70 |
|
if ($environment === null) { |
| 71 |
|
$environment = $this->getConfig()->getDefaultEnvironment(); |
| 72 |
|
$output->writeln('<comment>warning</comment> no environment specified, defaulting to: ' . $environment); |
| 73 |
|
} else { |
| 74 |
|
$output->writeln('<info>using environment</info> ' . $environment); |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
if (!$this->getConfig()->hasEnvironment($environment)) { |
| 78 |
|
$output->writeln(sprintf('<error>The environment "%s" does not exist</error>', $environment)); |
src/Phinx/Console/Command/SeedRun.php 1 location
|
@@ 62-67 (lines=6) @@
|
| 59 |
|
$seedSet = $input->getOption('seed'); |
| 60 |
|
$environment = $input->getOption('environment'); |
| 61 |
|
|
| 62 |
|
if ($environment === null) { |
| 63 |
|
$environment = $this->getConfig()->getDefaultEnvironment(); |
| 64 |
|
$output->writeln('<comment>warning</comment> no environment specified, defaulting to: ' . $environment); |
| 65 |
|
} else { |
| 66 |
|
$output->writeln('<info>using environment</info> ' . $environment); |
| 67 |
|
} |
| 68 |
|
|
| 69 |
|
if (!$this->getConfig()->hasEnvironment($environment)) { |
| 70 |
|
$output->writeln(sprintf('<error>The environment "%s" does not exist</error>', $environment)); |
src/Phinx/Console/Command/Status.php 1 location
|
@@ 61-66 (lines=6) @@
|
| 58 |
|
$environment = $input->getOption('environment'); |
| 59 |
|
$format = $input->getOption('format'); |
| 60 |
|
|
| 61 |
|
if ($environment === null) { |
| 62 |
|
$environment = $this->getConfig()->getDefaultEnvironment(); |
| 63 |
|
$output->writeln('<comment>warning</comment> no environment specified, defaulting to: ' . $environment); |
| 64 |
|
} else { |
| 65 |
|
$output->writeln('<info>using environment</info> ' . $environment); |
| 66 |
|
} |
| 67 |
|
|
| 68 |
|
if (!$this->getConfig()->hasEnvironment($environment)) { |
| 69 |
|
$output->writeln(sprintf('<error>The environment "%s" does not exist</error>', $environment)); |