src/ServiceProvider/DoctrineOrmServiceProvider.php
private function getOrmMappingDriverFactoryStaticPhp(Container $container): callable
    {
        return $container->protect(function (array $mapping, Configuration $config) {
            return new StaticPHPDriver($mapping['path']);
        });
    }
private function getOrmMappingDriverFactoryStaticPhp(Container $container): callable
    {
        return $container->protect(function (array $mapping, Configuration $config) {
            return new StaticPHPDriver($mapping['path']);
        });
    }
@param Container $container

@return callable