Compiler::getFunction()

getFunction($name) Parameters $name

Compiler::compile()

Compiler compile(Node $node) Compiles a node. Parameters Node $node The node to compile Return Value Compiler The current compiler instance

Compiler::compile()

compile(ContainerBuilder $container) Run the Compiler and process all Passes. Parameters ContainerBuilder $container

Compiler::addPass()

addPass(CompilerPassInterface $pass, string $type = PassConfig::TYPE_BEFORE_OPTIMIZATION) Adds a pass to the PassConfig. Parameters CompilerPassInterface $pass A compiler pass string $type The type of the pass

Compiler::addLogMessage()

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

Compiler

class Compiler Compiles a node to PHP code. Methods __construct(array $functions) getFunction($name) string getSource() Gets the current PHP code after compilation. reset() Compiler compile(Node $node) Compiles a node. subcompile(Node $node) Compiler raw(string $string) Adds a raw string to the compiled code. Compiler string(string $value) Adds a quoted string to the compiled code. Compiler repr(mixed $value) Returns a PHP representation of a g

Compiler

class Compiler This class is used to remove circular dependencies between individual passes. Methods __construct() PassConfig getPassConfig() Returns the PassConfig. ServiceReferenceGraph getServiceReferenceGraph() Returns the ServiceReferenceGraph. LoggingFormatter getLoggingFormatter() Returns the logging formatter which can be used by compilation passes. addPass(CompilerPassInterface $pass, string $type = PassConfig::TYPE_BEFORE_OPTIMIZATION) Adds a pass to the Pa

CompiledRoute::unserialize()

unserialize($serialized) {@inheritdoc} Parameters $serialized

CompiledRoute::serialize()

serialize() {@inheritdoc}

CompiledRoute::getVariables()

array getVariables() Returns the variables. Return Value array The variables