use Symfony\Component\DependencyInjection\ContainerBuilder;
#[Package('core')]
class MigrationCompilerPass implements CompilerPassInterface
{ public function process(ContainerBuilder
$container): void
{ $migrationCollections =
$container->
get(MigrationCollectionLoader::
class)->
collectAll();
$activeCollectionMigrations =
[[]];
foreach ($migrationCollections as $collection) { $activeCollectionMigrations[] =
$collection->
getActiveMigrationTimestamps();
} $container->
setParameter('migration.active',
array_merge(...
$activeCollectionMigrations));
}}