Browse Source

Fix #17985: Convert migrationNamespaces to array if needed

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
tags/2.0.36
DarkDef 4 years ago committed by GitHub
parent
commit
e478c23bd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      framework/CHANGELOG.md
  2. 2
      framework/console/controllers/BaseMigrateController.php

1
framework/CHANGELOG.md

@ -24,6 +24,7 @@ Yii Framework 2 Change Log
- Enh #18120: Include path to the log file into error message if `FileTarget::export` fails (uaoleg)
- Enh #15202: Add optional param `--silent-exit-on-exception` in `yii\console\Controller` (egorrishe)
- Bug #18110: Add quotes to return value of viewName in MSSQL schema. It is `[someView]` now (darkdef)
- Bug #17985: Convert migrationNamespaces to array if needed (darkdef)
2.0.35 May 02, 2020

2
framework/console/controllers/BaseMigrateController.php

@ -119,6 +119,8 @@ abstract class BaseMigrateController extends Controller
throw new InvalidConfigException('At least one of `migrationPath` or `migrationNamespaces` should be specified.');
}
$this->migrationNamespaces = (array) $this->migrationNamespaces;
foreach ($this->migrationNamespaces as $key => $value) {
$this->migrationNamespaces[$key] = trim($value, '\\');
}

Loading…
Cancel
Save