/** * @param ComponentNode $node * @param ComponentDefinition|PhpClassComponentDefinition $definition * @param SourceCompilerInterface $sourceCompiler * @return string */ public function compileComponent(ComponentNode $node, ComponentDefinition $definition, SourceCompilerInterface $sourceCompiler) { return sprintf(static::CALL_CODE_TEMPLATE, $definition->getClassName(), $definition->getMethod(), $this->compileParameters($definition, $node, $sourceCompiler)); }