From e8e441752f4f910808a803647eaf7781bd3ec689 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Andr=C3=A9?= Date: Wed, 19 Jun 2024 13:53:12 +0200 Subject: [PATCH] bug #1573 [make:twig-component] Fix config file in error messages --- src/Maker/MakeTwigComponent.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } } }