Skip to content

Commit

Permalink
Merge 5fbac62 into 92610d9
Browse files Browse the repository at this point in the history
  • Loading branch information
sabbelasichon committed Dec 4, 2020
2 parents 92610d9 + 5fbac62 commit b12ed54
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Cli/Symfony/ConsoleKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,16 @@ protected function build(ContainerBuilder $containerBuilder): void
[new Reference(ShellCommandService::class)]
);
}

public function getCacheDir(): string
{
// manually configured, so it can be replaced in phar
return sys_get_temp_dir() . '/_surf';
}

public function getLogDir(): string
{
// manually configured, so it can be replaced in phar
return sys_get_temp_dir() . '/_surf_log';
}
}
2 changes: 2 additions & 0 deletions src/Integration/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ protected function createDeployment(string $deploymentName, string $path = null)
$this->ensureDirectoryExists($tempPath);
$deployment->setTemporaryPath($tempPath);

$container = $this->container;

require($deploymentPathAndFilename);

return $deployment;
Expand Down

0 comments on commit b12ed54

Please sign in to comment.