From db611ba9c62c979c48483568cabd93488cb9cf4a Mon Sep 17 00:00:00 2001 From: Paul Rijke Date: Fri, 26 Apr 2024 11:55:29 +0200 Subject: [PATCH] Use cachedir as the logdir for build purposes see https://github.com/symfony/symfony/pull/45579 --- config/packages/monolog.yaml | 2 +- src/OpenConext/Kernel.php | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/config/packages/monolog.yaml b/config/packages/monolog.yaml index a0df5ab5a..6bf4acd38 100644 --- a/config/packages/monolog.yaml +++ b/config/packages/monolog.yaml @@ -11,7 +11,7 @@ monolog: ident: openconext-profile type: stream path: "php://stderr" - formatter: \OpenConext\Infrastructure\Monolog\Formatter\JsonFormatter + formatter: 'OpenConext\Infrastructure\Monolog\Formatter\JsonFormatter' console: path: "php://stderr" type: console diff --git a/src/OpenConext/Kernel.php b/src/OpenConext/Kernel.php index cfdc7a5f6..80affbaba 100644 --- a/src/OpenConext/Kernel.php +++ b/src/OpenConext/Kernel.php @@ -31,4 +31,15 @@ public function getProjectDir(): string { return dirname(__DIR__, 2); } + + /** + * Although we don't use the log dir, the method is required + * to be implemented because it is required during building of the container + */ + public function getLogDir(): string + { + return $this->getCacheDir(); + } + + }