code: 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);
          });
      }
docs: @param Container $container
  
  @return callable