code: function extractMiddleware(name, targets, config) {
    for(const i in targets) {
      if(name.indexOf('#') !== -1) {
        const [controller, action] = name.split('#');
        MiddleWares.push({
          target: targets[i],
          controller,
          action,
          type: config && config.type ? config.type : 'use'
        });
      } else {
        MiddleWares.push({
          target: targets[i],
          controller: name,
          type: config && config.type ? config.type : 'use'
        });
      }
    }
  }
docs: Extract middleware
  @param name
  @param targets
  @param config