migrations icon indicating copy to clipboard operation
migrations copied to clipboard

Doubt about MigratorConfiguration [EDIT]

Open gravataLonga opened this issue 2 years ago • 2 comments

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 avatar Dec 14 '22 00:12 gravataLonga

👀 21 Aug 2023.

gravataLonga avatar Aug 21 '23 08:08 gravataLonga

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

greg0ire avatar Aug 21 '23 10:08 greg0ire