Open grandmotivator opened 5 years ago
What problem do you want to solve with such refactoring?
Using the code of these two methods in custom project.
OK. That is significant issue that could be considered as solvable architectural bug.
Do you want to try fixing it?
Until then, developers have to use not very effective methods to get this functionality.
Example: https://github.com/tourhunter-com/yii2-dev-updater/blob/master/src/MigrationHelper.php
\yii\console\controllers\BaseMigrateController::getNewMigrations \yii\console\controllers\MigrateController::getMigrationHistory
It would be more correct to transfer business logic from controllers to models.