Skip to content

Commit 3320d85

Browse files
committed
Merge branch 'master' of https://github.com/edyan/neuralyzer
2 parents 2dc4fc6 + abe2d83 commit 3320d85

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Console/Commands/RunCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,6 @@ protected function configure(): void
185185
*/
186186
protected function execute(InputInterface $input, OutputInterface $output): ?int
187187
{
188-
if (!empty($input->getOption('bootstrap'))) {
189-
FileLoader::checkAndLoad($input->getOption('bootstrap'));
190-
}
191-
192188
// Throw an exception immediately if we don't have the required DB parameter
193189
if (empty($input->getOption('db'))) {
194190
throw new \InvalidArgumentException('Database name is required (--db)');
@@ -232,6 +228,10 @@ protected function execute(InputInterface $input, OutputInterface $output): ?int
232228
$this->db->setPretend($this->input->getOption('pretend'));
233229
$this->db->setReturnRes($this->input->getOption('sql'));
234230

231+
if (!empty($input->getOption('bootstrap'))) {
232+
FileLoader::checkAndLoad($input->getOption('bootstrap'));
233+
}
234+
235235
$stopwatch = new Stopwatch();
236236
$stopwatch->start('Neuralyzer');
237237
// Get tables

0 commit comments

Comments
 (0)