Skip to content

Commit

Permalink
[BUGFIX] Correct CGL
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminkott committed Nov 21, 2024
1 parent ed815ab commit 5322a3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Service/SitepackageGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
use Twig\Environment;
use Twig\Loader\ArrayLoader;
use ZipArchive;
use RuntimeException;

class SitepackageGenerator
{
Expand All @@ -48,7 +49,7 @@ public function create(Sitepackage $package): void
$sourceDir = $this->kernel->getProjectDir() . '/resources/packages/' . $package->getBasePackage() . '/' . (string)$package->getTypo3Version() . '/src/';
$tempFileName = tempnam(sys_get_temp_dir(), $this->filename);
if ($tempFileName === false) {
throw new \RuntimeException(sprintf('Cannot create temporary name for %s/%s' . sys_get_temp_dir(), $this->filename), 1732123721);
throw new RuntimeException(sprintf('Cannot create temporary name for %s/%s' . sys_get_temp_dir(), $this->filename), 1732123721);
}
$this->zipPath = $tempFileName;
$fileList = FileUtility::listDirectory($sourceDir);
Expand Down

0 comments on commit 5322a3a

Please sign in to comment.