class Compiler

The Compiler class compiles the Silex framework.

This is deprecated. Use composer instead.

Properties

protected $version

Methods

compile(string $pharFile = 'silex.phar')

Compiles the Silex source code into one single Phar file.

addFile(Phar $phar, SplFileInfo $file, $strip = true)

No description

getStub()

No description

static string
stripWhitespace(string $source)

Removes whitespace from a PHP source string while preserving line numbers.

Details

at line 33
compile(string $pharFile = 'silex.phar')

Compiles the Silex source code into one single Phar file.

Parameters

string $pharFile Name of the output Phar file

at line 87
protected addFile(Phar $phar, SplFileInfo $file, $strip = true)

Parameters

Phar $phar
SplFileInfo $file
$strip

at line 101
protected getStub()

at line 161
static string stripWhitespace(string $source)

Removes whitespace from a PHP source string while preserving line numbers.

Based on Kernel::stripComments(), but keeps line numbers intact.

Parameters

string $source A PHP string

Return Value

string The PHP string with the whitespace removed