addMigrationsDirectory('DoctrineMigrations', (\dirname(__DIR__, 4).'/migrations')); $a->setAllOrNothing(false); $a->setCheckDatabasePlatform(true); $a->setTransactional(true); $a->setMetadataStorageConfiguration(new \Doctrine\Migrations\Metadata\Storage\TableMetadataStorageConfiguration()); $container->privates['doctrine.migrations.dependency_factory'] = $instance = \Doctrine\Migrations\DependencyFactory::fromEntityManager(new \Doctrine\Migrations\Configuration\Migration\ExistingConfiguration($a), \Doctrine\Migrations\Configuration\EntityManager\ManagerRegistryEntityManager::withSimpleDefault(($container->services['doctrine'] ?? $container->getDoctrineService())), ($container->privates['monolog.logger'] ?? $container->load('getMonolog_LoggerService'))); $instance->setDefinition('Doctrine\\Migrations\\Version\\MigrationFactory', function () use ($container) { return ($container->privates['doctrine.migrations.container_aware_migrations_factory'] ?? $container->load('getDoctrine_Migrations_ContainerAwareMigrationsFactoryService')); }); return $instance; } }