PHP Класс REBELinBLUE\Deployer\Scripts\Parser

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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