Skip to content

Instantly share code, notes, and snippets.

@becizzz
Last active October 11, 2016 12:42
Show Gist options
  • Save becizzz/7213083cd6cc7a75b91f78861a7bc843 to your computer and use it in GitHub Desktop.
Save becizzz/7213083cd6cc7a75b91f78861a7bc843 to your computer and use it in GitHub Desktop.
diff --git a/src/Plugin/views/style/Xml.php b/src/Plugin/views/style/Xml.php
index 95c717f..f85da79 100644
--- a/src/Plugin/views/style/Xml.php
+++ b/src/Plugin/views/style/Xml.php
@@ -50,10 +50,11 @@ class Xml extends Serializer {
$plugin_definition,
SerializerInterface $serializer,
array $serializer_formats,
+ array $serializer_format_providers,
PluginManagerInterface $xslProcessPluginManager,
LanguageManagerInterface $languageManager
) {
- parent::__construct($configuration, $plugin_id, $plugin_definition, $serializer, $serializer_formats);
+ parent::__construct($configuration, $plugin_id, $plugin_definition, $serializer, $serializer_formats, $serializer_format_providers);
$this->xslProcessPluginManager = $xslProcessPluginManager;
$this->languageManager = $languageManager;
}
@@ -70,6 +71,7 @@ class Xml extends Serializer {
$plugin_definition,
$container->get('views_feed_xml.serializer'),
$container->getParameter('views_feed_xml.serializer.formats'),
+ $container->getParameter('serializer.format_providers'),
$container->get('plugin.manager.xsl_process'),
$container->get('language_manager')
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment