doctrine / migrations

Doctrine Database Migrations Library
https://www.doctrine-project.org/projects/migrations.html
MIT License
4.68k stars 385 forks source link

Doubt about MigratorConfiguration [EDIT] #1294

Open gravataLonga opened 1 year ago

gravataLonga commented 1 year ago
Q A
Version any

Support Question

Hello, i was trying to find an answer for a question i have for many days. If i'm breaking any rule, you can close topic. 😄 My question is why Doctrine\Migrations\MigratorConfiguration is marked as @internal, why? If i want to use my own implementation of Migrate i need to initialise that class.

$factory = new DependencyFactory(); // ... wherever 
$migrator = $factory->getMigrator();
return $migrator->migrate($plan, new MigratorConfiguration());  

There are valid reason about it? Probably i'm missing something, if so, i'm sorry.

gravataLonga commented 1 year ago

👀 21 Aug 2023.

greg0ire commented 1 year ago

Sorry, I don't understand your question. I don't see how the code block you are including illustrates your issue.