protected function attachMenu($classnames)
    {
        $menuComposer = MenuComposer::getInstance();
        if (is_array($classnames)) {
            foreach ($classnames as $classname) {
                $menuComposer->compose($classname);
            }
            return;
        }
        return $menuComposer->compose($classnames);
    }