PHP Класс Symfony\Component\DependencyInjection\Compiler\Compiler

Автор: Johannes M. Schmitt ([email protected])
Показать файл Открыть проект Примеры использования класса

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

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

Описание методов

__construct() публичный метод

Constructor.
public __construct ( )

addLogMessage() публичный метод

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

addPass() публичный метод

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() публичный метод

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

getLog() публичный метод

Returns the log.
public getLog ( ) : array
Результат array Log array

getLoggingFormatter() публичный метод

Returns the logging formatter which can be used by compilation passes.
public getLoggingFormatter ( ) : LoggingFormatter
Результат LoggingFormatter

getPassConfig() публичный метод

Returns the PassConfig.
public getPassConfig ( ) : PassConfig
Результат PassConfig The PassConfig instance

getServiceReferenceGraph() публичный метод

Returns the ServiceReferenceGraph.
public getServiceReferenceGraph ( ) : Symfony\Component\DependencyInjection\Compiler\ServiceReferenceGraph
Результат Symfony\Component\DependencyInjection\Compiler\ServiceReferenceGraph The ServiceReferenceGraph instance