Repositories/Menu/MenuRepository.php
public function menu($name)
    {
        if (array_key_exists($name, $this->menus)) {
            return $this->menus[$name];
        }

        return $this->menus[$name] = new MenuBuilder($name, $this->config);
    }
public function menu($name)
    {
        if (array_key_exists($name, $this->menus)) {
            return $this->menus[$name];
        }

        return $this->menus[$name] = new MenuBuilder($name, $this->config);
    }
public function menu ( $ name ) { if ( array_key_exists ( $ name , $ this -> menus ) ) { return $ this -> menus [ $ name ] ; } return $ this -> menus [ $ name ] = new MenuBuilder ( $ name , $ this -> config ) ; }
Create MenuItem for specified menu.

@param $name

@return MenuItem
Create MenuItem for specified menu .