"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "framework/console/controllers/BaseMigrateController.php" between
yii2-2.0.35.tar.gz and yii2-2.0.36.tar.gz

About: Yii 2 is a high-performance component-based PHP framework for developing large-scale Web applications (source).

BaseMigrateController.php  (yii2-2.0.35):BaseMigrateController.php  (yii2-2.0.36)
skipping to change at line 121 skipping to change at line 121
* @throws InvalidConfigException if directory specified in migrationPath do esn't exist and action isn't "create". * @throws InvalidConfigException if directory specified in migrationPath do esn't exist and action isn't "create".
* @return bool whether the action should continue to be executed. * @return bool whether the action should continue to be executed.
*/ */
public function beforeAction($action) public function beforeAction($action)
{ {
if (parent::beforeAction($action)) { if (parent::beforeAction($action)) {
if (empty($this->migrationNamespaces) && empty($this->migrationPath) ) { if (empty($this->migrationNamespaces) && empty($this->migrationPath) ) {
throw new InvalidConfigException('At least one of `migrationPath ` or `migrationNamespaces` should be specified.'); throw new InvalidConfigException('At least one of `migrationPath ` or `migrationNamespaces` should be specified.');
} }
$this->migrationNamespaces = (array) $this->migrationNamespaces;
foreach ($this->migrationNamespaces as $key => $value) { foreach ($this->migrationNamespaces as $key => $value) {
$this->migrationNamespaces[$key] = trim($value, '\\'); $this->migrationNamespaces[$key] = trim($value, '\\');
} }
if (is_array($this->migrationPath)) { if (is_array($this->migrationPath)) {
foreach ($this->migrationPath as $i => $path) { foreach ($this->migrationPath as $i => $path) {
$this->migrationPath[$i] = Yii::getAlias($path); $this->migrationPath[$i] = Yii::getAlias($path);
} }
} elseif ($this->migrationPath !== null) { } elseif ($this->migrationPath !== null) {
$path = Yii::getAlias($this->migrationPath); $path = Yii::getAlias($this->migrationPath);
 End of changes. 1 change blocks. 
0 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)