PHP Class Symfony\Component\DependencyInjection\Compiler\Compiler

Author: Johannes M. Schmitt ([email protected])
Datei anzeigen Open project: pmjones/php-framework-benchmarks Class Usage Examples

Public Methods

Method Description
__construct ( ) Constructor.
addLogMessage ( string $string ) Adds a log message.
addPass ( Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface $pass, string $type = PassConfig::TYPE_BEFORE_OPTIMIZATION ) Adds a pass to the PassConfig.
compile ( ContainerBuilder $container ) Run the Compiler and process all Passes.
getLog ( ) : array Returns the log.
getLoggingFormatter ( ) : LoggingFormatter Returns the logging formatter which can be used by compilation passes.
getPassConfig ( ) : PassConfig Returns the PassConfig.
getServiceReferenceGraph ( ) : Symfony\Component\DependencyInjection\Compiler\ServiceReferenceGraph Returns the ServiceReferenceGraph.

Method Details

__construct() public method

Constructor.
public __construct ( )

addLogMessage() public method

Adds a log message.
public addLogMessage ( string $string )
$string string The log message

addPass() public method

Adds a pass to the PassConfig.
public addPass ( Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface $pass, string $type = PassConfig::TYPE_BEFORE_OPTIMIZATION )
$pass Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface A compiler pass
$type string The type of the pass

compile() public method

Run the Compiler and process all Passes.
public compile ( ContainerBuilder $container )
$container Symfony\Component\DependencyInjection\ContainerBuilder

getLog() public method

Returns the log.
public getLog ( ) : array
return array Log array

getLoggingFormatter() public method

Returns the logging formatter which can be used by compilation passes.
public getLoggingFormatter ( ) : LoggingFormatter
return LoggingFormatter

getPassConfig() public method

Returns the PassConfig.
public getPassConfig ( ) : PassConfig
return PassConfig The PassConfig instance

getServiceReferenceGraph() public method

Returns the ServiceReferenceGraph.
public getServiceReferenceGraph ( ) : Symfony\Component\DependencyInjection\Compiler\ServiceReferenceGraph
return Symfony\Component\DependencyInjection\Compiler\ServiceReferenceGraph The ServiceReferenceGraph instance