node_modules/@adonisjs/fold/src/Ioc/index.js
/**
   * Executes all extend calls in sequence. Successfully
   * executed extend calls will be removed from the
   * array, so that they are not executed again.
   *
   * @method executeExtendCalls
   *
   * @return {void}
   */
Executes all extend calls in sequence. Successfully
executed extend calls will be removed from the
array, so that they are not executed again.



@return {void}
Executes all extend calls in sequence . Successfully executed extend calls will be removed from the array so that they are not executed again . @return { void }
executeExtendCalls () {
    _.remove(this._extendCalls, ([ namespace, key, closure, ...options ]) => {
      if (!this._hasManager(namespace)) {
        const message = `${namespace} cannot be extended, since their is no public interface to extend`
        throw GE.InvalidArgumentException.invoke(message, 500, 'E_CANNOT_EXTEND_BINDING')
      }
      if (typeof (closure) !== 'function') {
        throw GE.InvalidArgumentException.invalidParameter('Ioc.extend expects 3rd parameter to be a closure', closure)
      }
      const resolvedValue = closure(this)
      debug('extending %s namespace %j', namespace, { key, options: [...options] })
      this._managers[namespace].extend(key, resolvedValue, ...options)
      return true
    })
  }
executeExtendCalls ( ) { _ . remove ( this . _extendCalls , ( [ namespace , key , closure , ... options ] ) => { if ( ! this . _hasManager ( namespace ) ) { const message = ` ${ namespace } ` throw GE . InvalidArgumentException . invoke ( message , 500 , 'E_CANNOT_EXTEND_BINDING' ) } if ( typeof ( closure ) !== 'function' ) { throw GE . InvalidArgumentException . invalidParameter ( 'Ioc.extend expects 3rd parameter to be a closure' , closure ) } const resolvedValue = closure ( this ) debug ( 'extending %s namespace %j' , namespace , { key , options : [ ... options ] } ) this . _managers [ namespace ] . extend ( key , resolvedValue , ... options ) return true } ) }
Executes all extend calls in sequence.
Executes all extend calls in sequence .