public function createConfigByMethodName($methodName)
    {
        $options = array();
        if (preg_match_all('/:([\w]+)/', $methodName, $matches)) {
            for ($i = 1; $i < count($matches); $i++) {
                $options['$'.$i] = $matches[$i][0];
            }
        }
        if (in_array($methodName, $this->uploadMethodNames)) {
            $options['url'] = self::UPLOAD_API_URL;
        }
        return $options;
    }
public function createConfigByMethodName($methodName)
    {
        $options = array();
        if (preg_match_all('/:([\w]+)/', $methodName, $matches)) {
            for ($i = 1; $i < count($matches); $i++) {
                $options['$'.$i] = $matches[$i][0];
            }
        }
        if (in_array($methodName, $this->uploadMethodNames)) {
            $options['url'] = self::UPLOAD_API_URL;
        }
        return $options;
    }
public function createConfigByMethodName ( $ methodName ) { $ options = array ( ) ; if ( preg_match_all ( '/:([\w]+)/' , $ methodName , $ matches ) ) { for ( $ i = 1 ; $ i < count ( $ matches ) ; $ i ++ ) { $ options [ '$' . $ i ] = $ matches [ $ i ] [ 0 ] ; } } if ( in_array ( $ methodName , $ this -> uploadMethodNames ) ) { $ options [ 'url' ] = self :: UPLOAD_API_URL ; } return $ options ; }
Creates an option by methodName
@param string $methodName
@return array
Creates an option by methodName