diff --git a/src/Maker/MakeTwigComponent.php b/src/Maker/MakeTwigComponent.php index 2fcc64e94..6dd79f3d6 100644 --- a/src/Maker/MakeTwigComponent.php +++ b/src/Maker/MakeTwigComponent.php @@ -106,14 +106,14 @@ public function interact(InputInterface $input, ConsoleStyle $io, Command $comma $path = 'config/packages/twig_component.yaml'; if (!$this->fileManager->fileExists($path)) { - throw new RuntimeCommandException(message: 'Unable to find twig_components.yaml'); + throw new RuntimeCommandException(message: 'Unable to find twig_component.yaml'); } try { $value = Yaml::parse($this->fileManager->getFileContents($path)); $this->namespace = substr(array_key_first($value['twig_component']['defaults']), 4); } catch (\Throwable $throwable) { - throw new RuntimeCommandException(message: 'Unable to parse twig_components.yaml', previous: $throwable); + throw new RuntimeCommandException(message: 'Unable to parse twig_component.yaml', previous: $throwable); } } }