PHP 클래스 REBELinBLUE\Deployer\Scripts\Parser

파일 보기 프로젝트 열기: rebelinblue/deployer 1 사용 예제들

공개 메소드들

메소드 설명
parseFile ( string $file, array $tokens = [] ) : string Load a file and parse the the content.
parseString ( string $script, array $tokens = [] ) : string Parse a string to replace the tokens.

비공개 메소드들

메소드 설명
tidyScript ( string $script ) : string Cleans up things which are only in the script to make it easy to read but don't need to be sent to the server, i.e. comments.

메소드 상세

parseFile() 공개 메소드

Load a file and parse the the content.
public parseFile ( string $file, array $tokens = [] ) : string
$file string
$tokens array
리턴 string

parseString() 공개 메소드

Parse a string to replace the tokens.
public parseString ( string $script, array $tokens = [] ) : string
$script string
$tokens array
리턴 string