From 1d14ea6b4537a791450937774fcfe88c4433d0d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Klabbers?= Date: Tue, 9 Aug 2022 12:12:36 +0200 Subject: [PATCH] fix(compilation): versioner not inject into compilers (#3589) --- framework/core/src/Frontend/Assets.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/framework/core/src/Frontend/Assets.php b/framework/core/src/Frontend/Assets.php index 95d91f2ea9..2bb53507e9 100644 --- a/framework/core/src/Frontend/Assets.php +++ b/framework/core/src/Frontend/Assets.php @@ -156,12 +156,18 @@ public function makeLocaleCss(string $locale): LessCompiler protected function makeJsCompiler(string $filename) { - return new JsCompiler($this->assetsDir, $filename); + return resolve(JsCompiler::class, [ + 'assetsDir' => $this->assetsDir, + 'filename' => $filename + ]); } protected function makeLessCompiler(string $filename): LessCompiler { - $compiler = new LessCompiler($this->assetsDir, $filename); + $compiler = resolve(LessCompiler::class, [ + 'assetsDir' => $this->assetsDir, + 'filename' => $filename + ]); if ($this->cacheDir) { $compiler->setCacheDir($this->cacheDir.'/less');