Skip to content

Commit d3f2293

Browse files
committed
Enable XML and run code examples
1 parent 55c834c commit d3f2293

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

composer.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@
4646
"preferred-install": {
4747
"*": "dist"
4848
},
49-
"sort-packages": true
49+
"sort-packages": true,
50+
"allow-plugins": {
51+
"bamarni/composer-bin-plugin": true,
52+
"symfony/flex": true
53+
}
5054
},
5155
"extra": {
5256
"symfony": {

src/Service/CodeRunner/ConfigurationRunner.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
1515
*/
16-
class ConfigurationRunner
16+
class ConfigurationRunner implements Runner
1717
{
1818
/**
1919
* @param list<CodeNode> $nodes
@@ -77,7 +77,7 @@ private function getFile(CodeNode $node, array $contents): string
7777
$regex = match ($node->getLanguage()) {
7878
'php' => '|^// ?([a-z1-9A-Z_\-/]+\.php)$|',
7979
'yaml' => '|^# ?([a-z1-9A-Z_\-/]+\.yaml)$|',
80-
//'xml' => '|^<!-- ?([a-z1-9A-Z_\-/]+\.xml) ?-->$|',
80+
'xml' => '|^<!-- ?([a-z1-9A-Z_\-/]+\.xml) ?-->$|',
8181
default => null,
8282
};
8383

0 commit comments

Comments
 (0)