Class URITemplate
IURIStrategy implementation using URI templates
This strategy uses URI templates to validate the requested URI, if the URI matches a template then the assigned method will be executed.
This class is the preferable strategy if jsonapi is to be used.
It requires apache configuration via .htaccess
RewriteEngine On
#Required for URITemplate strategy
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [QSA,L]
- Phramework\URIStrategy\URITemplate implements Phramework\URIStrategy\IURIStrategy
Namespace: Phramework\URIStrategy
License: Apache-2.0
Author: Xenofon Spafaridis nohponex@gmail.com
Since: 1.0.0
Located at URIStrategy/URITemplate.php
License: Apache-2.0
Author: Xenofon Spafaridis nohponex@gmail.com
Since: 1.0.0
Located at URIStrategy/URITemplate.php
Methods summary
public
|
|
public
|
|
public
false|array
|
|
public static
string[2]
|
|
public
string[2]
|
#
invoke( object & $requestParameters, string $requestMethod, array $requestHeaders, object|false $requestUser )
Invoke URIStrategy |