Skip to content

Commit c3d0739

Browse files
committed
cachePath argument will be required in BladeCompiler #115
1 parent 66a8b4f commit c3d0739

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Extractors/Blade.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ class Blade extends Extractor implements ExtractorInterface
1616
*/
1717
public static function fromString($string, Translations $translations, array $options = [])
1818
{
19-
$bladeCompiler = new BladeCompiler(new Filesystem(), null);
19+
$cachePath = empty($options['cachePath']) ? sys_get_temp_dir() : $options['cachePath'];
20+
$bladeCompiler = new BladeCompiler(new Filesystem(), $cachePath);
2021
$string = $bladeCompiler->compileString($string);
2122

2223
PhpCode::fromString($string, $translations, $options);

0 commit comments

Comments
 (0)