src/ServiceProvider/DoctrineOrmServiceProvider.php
private function getOrmMappingDriverFactorySimpleXml(Container $container): callable
    {
        return $container->protect(function (array $mapping, Configuration $config) {
            return new SimplifiedXmlDriver(
                [$mapping['path'] => $mapping['namespace']],
                $mapping['extension'] ?? SimplifiedXmlDriver::DEFAULT_FILE_EXTENSION
            );
        });
    }
private function getOrmMappingDriverFactorySimpleXml(Container $container): callable
    {
        return $container->protect(function (array $mapping, Configuration $config) {
            return new SimplifiedXmlDriver(
                [$mapping['path'] => $mapping['namespace']],
                $mapping['extension'] ?? SimplifiedXmlDriver::DEFAULT_FILE_EXTENSION
            );
        });
    }
@param Container $container

@return callable