From cd3be64443551e3a693117c4bccbe53e36282456 Mon Sep 17 00:00:00 2001 From: oscarotero Date: Mon, 1 Aug 2016 20:09:57 +0200 Subject: [PATCH] cachePath argument will be required in BladeCompiler #115 --- src/Extractors/Blade.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Extractors/Blade.php b/src/Extractors/Blade.php index e1a31d01..b7351bde 100644 --- a/src/Extractors/Blade.php +++ b/src/Extractors/Blade.php @@ -11,12 +11,15 @@ */ class Blade extends Extractor implements ExtractorInterface { + public static $cachePath; + /** * {@inheritdoc} */ public static function fromString($string, Translations $translations = null, $file = '') { - $bladeCompiler = new BladeCompiler(new Filesystem(), null); + $cachePath = empty(static::$cachePath) ? sys_get_temp_dir() : static::$cachePath; + $bladeCompiler = new BladeCompiler(new Filesystem(), $cachePath); $string = $bladeCompiler->compileString($string); return PhpCode::fromString($string, $translations, $file);