Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
addTemplateArguments example
->
raw
(
";\n"
)
->
outdent
(
)
->
write
(
"} catch (LoaderError \$e) {\n"
)
->
indent
(
)
->
write
(
"// ignore missing template\n"
)
->
outdent
(
)
->
write
(
"}\n"
)
->
write
(
sprintf
(
"if ($%s) {\n",
$template
)
)
->
indent
(
)
->
write
(
sprintf
(
'$%s->display(',
$template
)
)
;
$this
->
addTemplateArguments
(
$compiler
)
;
$compiler
->
raw
(
");\n"
)
->
outdent
(
)
->
write
(
"}\n"
)
;
}
else
{
$this
->
addGetTemplate
(
$compiler
)
;
$compiler
->
raw
(
'->display('
)
;
$this
->
addTemplateArguments
(
$compiler
)
;
$compiler
->
raw
(
");\n"
)
;
}
}