Skip to content

Commit

Permalink
fix: Fix temporary folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Huber committed Nov 11, 2024
1 parent 021a722 commit ea7a61d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,23 @@ class AppKernel extends Kernel
/**
* @return BundleInterface[]
*/
public function registerBundles()
public function registerBundles(): array
{
return [];
}
public function registerContainerConfiguration(LoaderInterface $loader)
public function registerContainerConfiguration(LoaderInterface $loader): void
{
$loader->load(__DIR__ . '/../config/services.yml');
}
/**
* Unique cache path for this Kernel
*/
public function getCacheDir()
public function getCacheDir(): string
{

$dir = implode('-', [
sys_get_temp_dir() . '/phabalicious',
Utilities::FALLBACK_VERSION,
getmyuid() ,
posix_getuid(),
md5(self::class)
]);

Expand All @@ -45,7 +44,7 @@ public function getLogDir(): string
return $this->getCacheDir();
}

protected function build(ContainerBuilder $containerBuilder)
protected function build(ContainerBuilder $containerBuilder): void
{
$containerBuilder->addCompilerPass(new CollectCommandsToApplicationCompilerPass());
$containerBuilder->addCompilerPass(new CollectMethodsToFactoryCompilerPass());
Expand Down

0 comments on commit ea7a61d

Please sign in to comment.