protected function completeMenu(Menu $m) {
		
		if($m->getType() === 'dynamic') {

			// invoke service to build menu entries
			
			Application::getInstance()->getService($m->getServiceId())->appendMenuEntries($m);

			
		}

		foreach($m->getEntries() as $entry) {
			if(($m = $entry->getSubMenu())) {
				$this->completeMenu($m);
			}
		}

	}
protected function completeMenu(Menu $m) {
		
		if($m->getType() === 'dynamic') {

			// invoke service to build menu entries
			
			Application::getInstance()->getService($m->getServiceId())->appendMenuEntries($m);

			
		}

		foreach($m->getEntries() as $entry) {
			if(($m = $entry->getSubMenu())) {
				$this->completeMenu($m);
			}
		}

	}
protected function completeMenu ( Menu $ m ) { if ( $ m -> getType ( ) === 'dynamic' ) { // invoke service to build menu entries Application :: getInstance ( ) -> getService ( $ m -> getServiceId ( ) ) -> appendMenuEntries ( $ m ) ; } foreach ( $ m -> getEntries ( ) as $ entry ) { if ( ( $ m = $ entry -> getSubMenu ( ) ) ) { $ this -> completeMenu ( $ m ) ; } } }
walk the menu tree
and invoke service to append dynamic menu entries

@param Menu $m
@throws \vxPHP\Application\Exception\ApplicationException
walk the menu tree and invoke service to append dynamic menu entries