ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Blade.php
Go to the documentation of this file.
1<?php
2
4
6use Illuminate\Filesystem\Filesystem;
7use Illuminate\View\Compilers\BladeCompiler;
8
12class Blade extends Extractor implements ExtractorInterface
13{
14 public static $cachePath;
15
19 public static function fromString($string, Translations $translations = null, $file = '')
20 {
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);
26 }
27}
An exception for terminatinating execution or to throw for unit testing.
Class to get gettext strings from blade.php files returning arrays.
Definition: Blade.php:13
static fromString($string, Translations $translations=null, $file='')
{Parses a string and append the translations found in the Translations instance.Translations}
Definition: Blade.php:19
static fromString($string, Translations $translations=null, $file='')
{Parses a string and append the translations found in the Translations instance.Translations}
Definition: PhpCode.php:50
Class to manage a collection of translations.
Class FlySystemFileAccessTest.
if(!file_exists("$old.txt")) if( $old===$new) if(file_exists("$new.txt")) $file