Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
toXMLString example
$use
->
setAttribute
(
'fill-rule',
$fillrule
)
;
}
elseif
(
$cleanup
)
{
$use
->
removeAttribute
(
'fill-rule'
)
;
}
$svg
->
getDocument
(
)
->
addChild
(
$use
)
;
if
(
$cleanup
)
{
$this
->
removeStyles
(
$svg
->
getDocument
(
)
)
;
}
file_put_contents
(
$path
. 'processed/' .
basename
(
$file
)
,
$svg
->
toXMLString
(
false
)
)
;
if
(
$verbose
)
{
$this
->io->
writeln
(
'Icon ' .
$file
. ' processed'
)
;
}
++
$processedCount
;
}
$this
->io->
success
(
'Processed ' .
$processedCount
. ' icons'
)
;
return
self::SUCCESS;
}