PHP Class REBELinBLUE\Deployer\Scripts\Parser

Afficher le fichier Open project: rebelinblue/deployer Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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.

Method Details

parseFile() public méthode

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

parseString() public méthode

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