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

@return callable
@param Container $container