src/RestResource.php
private function getPath(array $action, array $args)
    {
        $pattern = '/{(\d+)}/';
        $callback = function ($matches) use ($args) {
            return $args[$matches[1]];
        };

        return preg_replace_callback($pattern, $callback, $action['path']);
    }
private function getPath(array $action, array $args)
    {
        $pattern = '/{(\d+)}/';
        $callback = function ($matches) use ($args) {
            return $args[$matches[1]];
        };

        return preg_replace_callback($pattern, $callback, $action['path']);
    }
private function getPath ( array $ action , array $ args ) { $ pattern = '/{(\d+)}/' ; $ callback = function ( $ matches ) use ( $ args ) { return $ args [ $ matches [ 1 ] ] ; } ; return preg_replace_callback ( $ pattern , $ callback , $ action [ 'path' ] ) ; }
Returns the URI path for the request

@param array $action
@param array $args

@return mixed
Returns the URI path for the request