<?php
namespace App\Menu\Structure; class CurrentUserMenu extends \App\Menu\Structure\Menu { static protected $instance; static public function getInstance() { if (!static::$instance) { static::$instance=new self(); static::$instance->loadFromXml(APP_REAL_PATH.'_config/application/menuXML2-simple.cfg.php'); } return static::$instance; } protected function __construct() { $this->setUserAccess(\App\UserAccess\CurrentUserAccessFast::getInstance()); } }