Вход Регистрация
Файл: concrete5.7.5.6/concrete/vendor/gettext/gettext/src/Extractors/Blade.php
Строк: 33
<?php
namespace GettextExtractors;

use 
GettextTranslations;
use 
IlluminateFilesystemFilesystem;
use 
IlluminateViewCompilersBladeCompiler;

/**
 * Class to get gettext strings from blade.php files returning arrays
 */
class Blade extends Extractor implements ExtractorInterface
{
    
/**
     * {@inheritDoc}
     */
    
public static function fromString($stringTranslations $translations null$file '')
    {
        
$bladeCompiler = new BladeCompiler(new Filesystem(), null);
        
$string $bladeCompiler->compileString($string);

        return 
PhpCode::fromString($string$translations$file);
    }
}
Онлайн: 1
Реклама