PHP 클래스 Hostnet\Component\Webpack\Asset\TwigParser

저자: Harold Iedema ([email protected])
파일 보기 프로젝트 열기: hostnet/webpack-bundle 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Tracker $tracker, Twig_Environment $twig, $cache_dir )
findSplitPoints ( string $template_file ) : array Returns an array of split points from the given template file.
hashInlineFileName ( $template_file, $block_index ) : string Consistently calculate file name hashes.

비공개 메소드들

메소드 설명
expect ( $filename, Twig_Token $token, $type, $value = null )
getAssetFromStream ( $filename, Twig_TokenStream $stream )
resolveAssetPath ( string $asset, string $template_file, Twig_Token $token )
stripScript ( $str )

메소드 상세

__construct() 공개 메소드

public __construct ( Tracker $tracker, Twig_Environment $twig, $cache_dir )
$tracker Tracker
$twig Twig_Environment

findSplitPoints() 공개 메소드

Returns an array of split points from the given template file.
public findSplitPoints ( string $template_file ) : array
$template_file string
리턴 array

hashInlineFileName() 공개 정적인 메소드

Consistently calculate file name hashes.
public static hashInlineFileName ( $template_file, $block_index ) : string
$template_file
$block_index
리턴 string