protected function getSnippets()
{
$snippets = array();
foreach ($this->snippets_inherited as $bundle_id) {
$bundle = new AMYBundle($this->supportPath, $bundle_id, $this->hostOS);
$snippets = array_merge($snippets, $bundle->getSnippets());
}
$snippets_path = $this->bundlePath . '/snippets/';
if (!is_dir($snippets_path)) {
return $snippets;
}
$res_snippets = array();
foreach ($snippets as $snippet) {
$snippet['is_inherited'] = '1';
$res_snippets[] = $snippet;
}
return array_merge($res_snippets, $this->getSnippetsInDirectory($snippets_path, ''));
}