public function compile(array $config = NULL, $className = NULL, $parentName = NULL)
{
if (func_num_args()) {
trigger_error(__METHOD__ . ' arguments are deprecated, use Compiler::addConfig() and Compiler::setClassName().', E_USER_DEPRECATED);
$this->config = func_get_arg(0) ?: $this->config;
$this->className = @func_get_arg(1) ?: $this->className;
}
$this->processParameters();
$this->processExtensions();
$this->processServices();
$classes = $this->generateCode();
return implode("\n\n\n", $classes);
}