38 lines
753 B
PHP
38 lines
753 B
PHP
<?php
|
|
/**
|
|
* Hummingbird Anime Client
|
|
*
|
|
* An API client for Hummingbird to manage anime and manga watch lists
|
|
*
|
|
* @package HummingbirdAnimeClient
|
|
* @author Timothy J. Warren
|
|
* @copyright Copyright (c) 2015 - 2016
|
|
* @link https://github.com/timw4mail/HummingBirdAnimeClient
|
|
* @license MIT
|
|
*/
|
|
|
|
namespace Aviat\AnimeClient\Helper;
|
|
|
|
use Aviat\AnimeClient\MenuGenerator;
|
|
|
|
/**
|
|
* MenuGenerator helper wrapper
|
|
*/
|
|
class Menu {
|
|
|
|
use \Aviat\Ion\Di\ContainerAware;
|
|
|
|
/**
|
|
* Create the html for the selected menu
|
|
*
|
|
* @param string $menu_name
|
|
* @return string
|
|
*/
|
|
public function __invoke($menu_name)
|
|
{
|
|
$generator = new MenuGenerator($this->container);
|
|
return $generator->generate($menu_name);
|
|
}
|
|
|
|
}
|
|
// End of Menu.php
|