[ 'doctrine' => function(EntityManager $em) { return ConsoleRunner::createHelperSet($em); }, ], 'doctrine.debug' => false, 'doctrine.entity-paths' => add([ string('{basedir}/src/Entity') ]), 'doctrine.database' => [ 'driver' => 'pdo_mysql', 'hostname' => 'localhost', 'user' => 'root', 'password' => '', 'dbname' => '', ], 'em' => get(EntityManager::class), EntityManager::class => factory(function (Container $c) { $setup = Setup::createAnnotationMetadataConfiguration( $c->get('doctrine.entity-paths'), $c->get('doctrine.debug') ); return EntityManager::create($c->get('doctrine.database'), $setup); }), ];