diff --git a/composer.json b/composer.json
index 37d50ade8..cecf888a8 100644
--- a/composer.json
+++ b/composer.json
@@ -16,7 +16,6 @@
"ext-hash": "*",
"ext-json": "*",
"ext-mbstring": "*",
- "ext-simplexml": "*",
"ext-xmlreader": "*",
"ext-zlib": "*",
"composer-runtime-api": "^2.1",
@@ -274,9 +273,6 @@
]
},
"extra": {
- "aws/aws-sdk-php": [
- "S3"
- ],
"google/apiclient-services": [
"Sheets"
]
diff --git a/src/adapter/etl-adapter-xml/composer.json b/src/adapter/etl-adapter-xml/composer.json
index cdc1ee715..78c89e6b8 100644
--- a/src/adapter/etl-adapter-xml/composer.json
+++ b/src/adapter/etl-adapter-xml/composer.json
@@ -14,7 +14,6 @@
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
"ext-dom": "*",
"ext-xmlreader": "*",
- "ext-simplexml": "*",
"flow-php/etl": "^0.8 || 1.x-dev"
},
"config": {
diff --git a/src/adapter/etl-adapter-xml/src/Flow/ETL/Adapter/XML/XMLWriter/SimpleXMLWriter.php b/src/adapter/etl-adapter-xml/src/Flow/ETL/Adapter/XML/XMLWriter/SimpleXMLWriter.php
deleted file mode 100644
index 0c9399f14..000000000
--- a/src/adapter/etl-adapter-xml/src/Flow/ETL/Adapter/XML/XMLWriter/SimpleXMLWriter.php
+++ /dev/null
@@ -1,49 +0,0 @@
-name}>{$node->name}>");
- $this->buildXMLNode($xml, $node);
-
- return \trim(\str_replace('', '', (string) $xml->asXML()));
- }
-
- private function addAttribute(\SimpleXMLElement $element, XMLAttribute $attribute) : void
- {
- $element->addAttribute($attribute->name, $attribute->value);
- }
-
- private function buildXMLNode(\SimpleXMLElement $element, XMLNode $node) : void
- {
- if ($node->hasValue()) {
- /** @phpstan-ignore-next-line */
- $element[0] = $node->value;
- }
-
- foreach ($node->attributes as $attribute) {
- $this->addAttribute($element, $attribute);
- }
-
- if ($node->hasChildren()) {
- foreach ($node->children as $child) {
- $childElement = $element->addChild($child->name);
-
- if ($childElement === null) {
- throw new RuntimeException("Can't add child element to XML node");
- }
-
- $this->buildXMLNode($childElement, $child);
- }
- }
- }
-}
diff --git a/src/adapter/etl-adapter-xml/tests/Flow/ETL/Adapter/XML/Tests/Unit/XMLWriter/SimpleXMLWriterTest.php b/src/adapter/etl-adapter-xml/tests/Flow/ETL/Adapter/XML/Tests/Unit/XMLWriter/SimpleXMLWriterTest.php
deleted file mode 100644
index c0b446f60..000000000
--- a/src/adapter/etl-adapter-xml/tests/Flow/ETL/Adapter/XML/Tests/Unit/XMLWriter/SimpleXMLWriterTest.php
+++ /dev/null
@@ -1,81 +0,0 @@
-',
- $xmlWriter->write(
- XMLNode::nestedNode('root')
- ->append(XMLNode::nestedNode('child'))
- )
- );
- }
-
- public function test_writing_empty_node() : void
- {
- $xmlWriter = new SimpleXMLWriter();
-
- self::assertEquals(
- '',
- $xmlWriter->write(
- XMLNode::nestedNode('root')
- )
- );
- }
-
- public function test_writing_xml() : void
- {
- $xmlWriter = new SimpleXMLWriter();
-
- self::assertEquals(
- 'valuevaluevalue',
- $xmlWriter->write(
- XMLNode::nestedNode('root')
- ->append(XMLNode::flatNode('child', 'value'))
- ->append(
- XMLNode::nestedNode('child_with_children')
- ->append(XMLNode::flatNode('child', 'value'))
- ->append(XMLNode::flatNode('child', 'value'))
- )
- )
- );
- }
-
- public function test_writing_xml_with_attribute() : void
- {
- $xmlWriter = new SimpleXMLWriter();
-
- self::assertEquals(
- 'value',
- $xmlWriter->write(
- XMLNode::flatNode('root', 'value')
- ->appendAttribute(new XMLAttribute('attribute', 'value'))
- )
- );
- }
-
- public function test_writing_xml_with_empty_attribute() : void
- {
- $xmlWriter = new SimpleXMLWriter();
-
- self::assertEquals(
- 'value',
- $xmlWriter->write(
- XMLNode::flatNode('root', 'value')
- ->appendAttribute(new XMLAttribute('attribute', ''))
- )
- );
- }
-}
diff --git a/src/core/etl/composer.json b/src/core/etl/composer.json
index 5f7bbd700..4c4ae6e4a 100644
--- a/src/core/etl/composer.json
+++ b/src/core/etl/composer.json
@@ -49,10 +49,5 @@
"Flow\\": "tests/Flow"
}
},
- "extra": {
- "aws/aws-sdk-php": [
- "S3"
- ]
- },
"prefer-stable": true
}