public function register($sType, $sCallable, $aOptions = [])
    {
        if(!key_exists($sType, $this->aRequestPlugins))
        {
            throw new \Jaxon\Exception\Error($this->trans('errors.register.plugin', ['name' => $sType]));
        }

        $xPlugin = $this->aRequestPlugins[$sType];
        return $xPlugin->register($sType, $sCallable, $aOptions);
        // foreach($this->aRequestPlugins as $xPlugin)
        // {
        //     if($mResult instanceof \Jaxon\Request\Request || is_array($mResult) || $mResult === true)
        //     {
        //         return $mResult;
        //     }
        // }
        // throw new \Jaxon\Exception\Error($this->trans('errors.register.method', ['args' => print_r($aArgs, true)]));
    }
public function register($sType, $sCallable, $aOptions = [])
    {
        if(!key_exists($sType, $this->aRequestPlugins))
        {
            throw new \Jaxon\Exception\Error($this->trans('errors.register.plugin', ['name' => $sType]));
        }

        $xPlugin = $this->aRequestPlugins[$sType];
        return $xPlugin->register($sType, $sCallable, $aOptions);
        // foreach($this->aRequestPlugins as $xPlugin)
        // {
        //     if($mResult instanceof \Jaxon\Request\Request || is_array($mResult) || $mResult === true)
        //     {
        //         return $mResult;
        //     }
        // }
        // throw new \Jaxon\Exception\Error($this->trans('errors.register.method', ['args' => print_r($aArgs, true)]));
    }
public function register ( $ sType , $ sCallable , $ aOptions = [ ] ) { if ( ! key_exists ( $ sType , $ this -> aRequestPlugins ) ) { throw new \ Jaxon \ Exception \ Error ( $ this -> trans ( 'errors.register.plugin' , [ 'name' => $ sType ] ) ) ; } $ xPlugin = $ this -> aRequestPlugins [ $ sType ] ; return $ xPlugin -> register ( $ sType , $ sCallable , $ aOptions ) ; // foreach($this->aRequestPlugins as $xPlugin) // { //     if($mResult instanceof \Jaxon\Request\Request || is_array($mResult) || $mResult === true) //     { //         return $mResult; //     } // } // throw new \Jaxon\Exception\Error($this->trans('errors.register.method', ['args' => print_r($aArgs, true)])); }
Register a function, event or callable object

Call the request plugin with the $sType defined as name.

@param string        $sType          The type of request handler being registered
@param string        $sCallable      The callable entity being registered
@param array|string  $aOptions       The associated options

@return mixed
Register a function event or callable object