$ composer require "final-gene/uri-template-module"
Add FinalGene\UriTemplateModule
to your project's application-config modules
key
<?php
$uriTemplateService = $serviceManager->get('FinalGene\UriTemplateModule\UriTemplateService')
This method takes a route-key (for example api/rest/foo/bar
) and returns a string containing
a templated uri.
This method works exactly like getFromRoute
but it takes a zf-rest
config-key (resource name) instead of a route-key
(for example Vendor\Module\RestController
).