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

@return callable