ArtaxServiceBuilder icon indicating copy to clipboard operation
ArtaxServiceBuilder copied to clipboard

filter variable difference

Open Danack opened this issue 11 years ago • 0 comments

you can filter params in Guzzle like:

{
    "filters": [
        "strtolower",
        {
            "method": "MyClass::convertString",
            "args": [ "test", "@value", "@api" ]
        }
    ]
}

Which would pass to the static function MyClass::convertString three params:

  • "test" - a string
  • $value - the current value of the param
  • $api - which is actually the parameter being operated on.

Which is dumb - it should be called parameter.....

But we should support @parameter, @operation, @api.

Danack avatar Jul 15 '14 17:07 Danack