GenrbCompiler

class GenrbCompiler implements BundleCompilerInterface

Compiles .txt resource bundles to binary .res files.

Methods

__construct(string $genrb = 'genrb', string $envVars = '')

Creates a new compiler based on the "genrb" executable.

compile(string $sourcePath, string $targetDir)

Compiles a resource bundle at the given source to the given target directory.

Details

__construct(string $genrb = 'genrb', string $envVars = '')

Creates a new compiler based on the "genrb" executable.

Parameters

string $genrb Optional. The path to the "genrb" executable
string $envVars Optional. Environment variables to be loaded when running "genrb".

Exceptions

RuntimeException If the "genrb" cannot be found.

compile(string $sourcePath, string $targetDir)

Compiles a resource bundle at the given source to the given target directory.

Parameters

string $sourcePath
string $targetDir
doc_Symfony
2016-10-28 06:19:46
Comments
Leave a Comment

Please login to continue.