import Foundation

extension MMenu
{
    //MARK: private
    
    private class func factoryItemsList() -> [MMenuItemProtocol]
    {
        let itemConnect:MMenuItemConnect = MMenuItemConnect()
        
        let map:[MMenuItemProtocol] = [
            itemConnect]
        
        return map
    }
    
    //MARK: internal
    
    class func factoryItems() -> [MMenuItemProtocol]
    {
        var items:[MMenuItemProtocol] = factoryItemsList()
        
        items.sort
        { (itemA:MMenuItemProtocol, itemB:MMenuItemProtocol) -> Bool in
            
            return itemA.order.rawValue < itemB.order.rawValue
        }
        
        return items
    }
}

import Foundation

extension MMenu
{
    //MARK: private
    
    private class func factoryItemsList() -> [MMenuItemProtocol]
    {
        let map:[MMenuItemProtocol] = []
        
        return map
    }
    
    //MARK: internal
    
    class func factoryItems() -> [MMenuItemProtocol]
    {
        var items:[MMenuItemProtocol] = factoryItemsList()
        
        items.sort
        { (itemA:MMenuItemProtocol, itemB:MMenuItemProtocol) -> Bool in
            
            return itemA.order.rawValue < itemB.order.rawValue
        }
        
        return items
    }
}

--- 
+++ 
@@ -6,7 +6,10 @@
     
     private class func factoryItemsList() -> [MMenuItemProtocol]
     {
-        let map:[MMenuItemProtocol] = []
+        let itemConnect:MMenuItemConnect = MMenuItemConnect()
+        
+        let map:[MMenuItemProtocol] = [
+            itemConnect]
         
         return map
     }
Add item connect to factory
