Skip to content

Commit

Permalink
fix(compilation): versioner not inject into compilers (#3589)
Browse files Browse the repository at this point in the history
  • Loading branch information
luceos authored Aug 9, 2022
1 parent eab5093 commit 1d14ea6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions framework/core/src/Frontend/Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 1d14ea6

Please sign in to comment.