8000 Enable XML and run code examples (#46) · symfony-tools/code-block-checker@b42940b · GitHub
[go: up one dir, main page]

Skip to content

Commit b42940b

Browse files
authored
Enable XML and run code examples (#46)
* Enable XML and run code examples * normalize
1 parent 7384502 commit b42940b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

composer.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@
4242
}
4343
},
4444
"config": {
45+
"allow-plugins": {
46+
"bamarni/composer-bin-plugin": true,
47+
"symfony/flex": true
48+
},
4549
"optimize-autoloader": true,
4650
"preferred-install": {
4751
"*": "dist"

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)
0