Skip to content

Commit

Permalink
enabled alias goals
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Aug 1, 2016
1 parent 883d418 commit cb5f93c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ public function getItem($id)
{
$item = &$this->_items[$id];
if (is_array($item)) {
$item = $this->createItem($id, $item);
if (count($item) === 1 && key($item) === 'alias') {
$item = $this->getItem($item['alias']);
} else {
$item = $this->createItem($id, $item);
}
}

return $item;
Expand Down

0 comments on commit cb5f93c

Please sign in to comment.