private function iterateComponentConfigurations(Logger $logger, $filename, $node) { $retval = array(); $parser = new YAMLParser($logger); $parser->setFilePath(__SITE_PATH . '/app/config/' . $filename . '.yml'); $retval[] = $parser->findNodeByURI('all', $node); //just in case it's a usercommand (not component) load any config for it here also $retval[] = $parser->findNodeByURI(__YML_KEY, $node); $subdirectories = $this->getDirectoryList(); foreach ($subdirectories as $folder) { $parser->setFilePath($folder . '/config/' . $filename . '.yml'); $config = $parser->findNodeByURI(__YML_KEY, $node); if (is_array($config)) { $retval[] = $config; } } $this->configs = $retval; }