Compiler::compile()

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

Compiler::getLog()

array getLog() Returns the log. Return Value array Log array

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

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

Compiler::addLogMessage()

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

CompiledRoute::getTokens()

array getTokens() Returns the tokens. Return Value array The tokens

CompiledRoute::serialize()

serialize() {@inheritdoc}

CompiledRoute::getStaticPrefix()

string getStaticPrefix() Returns the static prefix. Return Value string The static prefix