Skip to content

Commit e8e4417

Browse files
authored
bug #1573 [make:twig-component] Fix config file in error messages
1 parent 08b21c3 commit e8e4417

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Maker/MakeTwigComponent.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,14 @@ public function interact(InputInterface $input, ConsoleStyle $io, Command $comma
106106
$path = 'config/packages/twig_component.yaml';
107107

108108
if (!$this->fileManager->fileExists($path)) {
109-
throw new RuntimeCommandException(message: 'Unable to find twig_components.yaml');
109+
throw new RuntimeCommandException(message: 'Unable to find twig_component.yaml');
110110
}
111111

112112
try {
113113
$value = Yaml::parse($this->fileManager->getFileContents($path));
114114
$this->namespace = substr(array_key_first($value['twig_component']['defaults']), 4);
115115
} catch (\Throwable $throwable) {
116-
throw new RuntimeCommandException(message: 'Unable to parse twig_components.yaml', previous: $throwable);
116+
throw new RuntimeCommandException(message: 'Unable to parse twig_component.yaml', previous: $throwable);
117117
}
118118
}
119119
}

0 commit comments

Comments
 (0)