Demo Service: Sandbox.Calculation/Post

Data

Array
(
    [0] => x
    [1] => y
    [2] => z
)

Controller action code

$this->loadService('Sandbox.Calculator/Post');
$result = $this->Post->calculate($posts);

Executing ->calculate() on that data: 3

IDE support

This is fully typehinted and autocompleted by the IDE if you use the shipped IdeHelper plugin enhancements.


Send your feedback or bugreport!