protected static function addAsseticBundle(&$content)
{
if (preg_match("/ bundles:[ ]*\\[.*'AimeosShopBundle'.*\\]/", $content) !== 1) {
$search = array("/ bundles:[ ]*\\[([^\\]]+)\\]/", "/ bundles:[ ]*\\[([ ]*)\\]/");
$replace = array(" bundles: [\$1,'AimeosShopBundle']", " bundles: ['AimeosShopBundle']");
if (($content = preg_replace($search, $replace, $content)) !== null) {
return true;
}
}
return false;
}