From f1d149dede4002a424cf4319f6b43d8e9318edd3 Mon Sep 17 00:00:00 2001 From: Indra Gunawan Date: Thu, 2 Jan 2025 15:28:01 +0800 Subject: [PATCH] do not throw an error if config file does not exist --- src/Maker/MakeTwigComponent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Maker/MakeTwigComponent.php b/src/Maker/MakeTwigComponent.php index 4bf55ee8d..66da5e709 100644 --- a/src/Maker/MakeTwigComponent.php +++ b/src/Maker/MakeTwigComponent.php @@ -106,7 +106,7 @@ 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_component.yaml'); + return; } try {