public function __construct(Menu $menu) { $this->data = []; $this->data['menu'] = $menu->getActiveMenus(); }