We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0db171e commit cd3be64Copy full SHA for cd3be64
src/Extractors/Blade.php
@@ -11,12 +11,15 @@
11
*/
12
class Blade extends Extractor implements ExtractorInterface
13
{
14
+ public static $cachePath;
15
+
16
/**
17
* {@inheritdoc}
18
19
public static function fromString($string, Translations $translations = null, $file = '')
20
- $bladeCompiler = new BladeCompiler(new Filesystem(), null);
21
+ $cachePath = empty(static::$cachePath) ? sys_get_temp_dir() : static::$cachePath;
22
+ $bladeCompiler = new BladeCompiler(new Filesystem(), $cachePath);
23
$string = $bladeCompiler->compileString($string);
24
25
return PhpCode::fromString($string, $translations, $file);
0 commit comments