From aeea6609c72c4583d807813b73e0c74847772e70 Mon Sep 17 00:00:00 2001 From: Florent Morselli Date: Sun, 17 Dec 2023 10:15:33 +0100 Subject: [PATCH] Initial commit --- src/Command/GenerateManifestCommand.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/Command/GenerateManifestCommand.php b/src/Command/GenerateManifestCommand.php index 3866a0c..b1ecda3 100644 --- a/src/Command/GenerateManifestCommand.php +++ b/src/Command/GenerateManifestCommand.php @@ -62,7 +62,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $assetFolder = '/' . trim((string) $input->getArgument('asset_folder'), '/'); $outputFile = '/' . trim((string) $input->getArgument('output'), '/'); - $this->createDirectory($publicFolder); + $this->filesystem->mkdir($publicFolder); $manifest = $this->processIcons($io, $manifest, $publicUrl, $publicFolder, $assetFolder); if ($manifest === self::FAILURE) { @@ -92,14 +92,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int return self::SUCCESS; } - private function createDirectory(string $folderPath): void - { - if ($this->filesystem->exists($folderPath)) { - $this->filesystem->remove($folderPath); - } - $this->filesystem->mkdir($folderPath); - } - /** * @param array $components * @return array{src: string, type: string}