pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / servers / web-apps / wallabag / wallabag-data.patch
blob4276af58c58405364eec799a676b1a1b123243ac
1 diff --git a/app/AppKernel.php b/app/AppKernel.php
2 index 61b734e06..d25d1aaa3 100644
3 --- a/app/AppKernel.php
4 +++ b/app/AppKernel.php
5 @@ -62,14 +62,19 @@ class AppKernel extends Kernel
6 return $bundles;
9 + public function getProjectDir()
10 + {
11 + return getenv('WALLABAG_DATA') ?: dirname(__DIR__);
12 + }
14 public function getCacheDir()
16 - return dirname(__DIR__) . '/var/cache/' . $this->getEnvironment();
17 + return $this->getProjectDir() . '/var/cache/' . $this->getEnvironment();
20 public function getLogDir()
22 - return dirname(__DIR__) . '/var/logs';
23 + return $this->getProjectDir() . '/var/logs';
26 public function registerContainerConfiguration(LoaderInterface $loader)