Netson\L4gettext\Compilers\BladeCompiler::compile PHP 메소드

compile() 공개 메소드

method differs from parent method in that it returns the compiled path this can be used by the calling function to do cleanup afterwards
public compile ( string $path ) : string
$path string
리턴 string
    public function compile($path)
    {
        $contents = $this->compileString($this->files->get($path));
        if (!is_null($this->cachePath)) {
            $compiled_path = $this->getCompiledPath($path);
            $this->files->put($compiled_path, $contents);
        }
        return $compiled_path;
    }