Skip to content

Commit 41b0f0a

Browse files
authored
Merge pull request #105 from OpenConext/bugfix/set-correct-template-reference
Set correct template reference
2 parents 2924e29 + f6b5b9c commit 41b0f0a

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 4.3.1
2+
**Bugfix**
3+
* Update metadata.xml template reference
4+
15
# 4.3.0
26
**New feature**
37
* Further support Symfony 4 by adhering to the Twig environment in favor of

src/Metadata/MetadataFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function generate()
8888

8989
$metadata->document = DOMDocumentFactory::create();
9090
$metadata->document->loadXML($this->templateEngine->render(
91-
'SurfnetSamlBundle:Metadata:metadata.xml.twig',
91+
'@SurfnetSaml/Metadata/metadata.xml.twig',
9292
['metadata' => $metadata]
9393
));
9494

src/Tests/Component/Metadata/MetadataFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function setUp()
4848
// Load the XML template from filesystem as the FilesystemLoader does not honour the bundle prefix
4949
$loader = new ArrayLoader(
5050
[
51-
'SurfnetSamlBundle:Metadata:metadata.xml.twig' => file_get_contents('src/Resources/views/Metadata/metadata.xml.twig')
51+
'@SurfnetSaml/Metadata/metadata.xml.twig' => file_get_contents('src/Resources/views/Metadata/metadata.xml.twig')
5252
]
5353
);
5454
$this->twig = new Environment($loader);

0 commit comments

Comments
 (0)