phramework doc
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Namespaces

  • Phramework
    • Authentication
    • Database
      • Operations
    • Exceptions
    • Extensions
    • Models
    • URIStrategy
    • Validate
    • Viewers

Classes

  • ClassBased
  • URITemplate

Interfaces

  • IURIStrategy

Interface IURIStrategy

IURIStrategy Interface

Direct known implementers

Phramework\URIStrategy\ClassBased, Phramework\URIStrategy\URITemplate

Namespace: Phramework\URIStrategy
License: Apache-2.0
Author: Xenofon Spafaridis nohponex@gmail.com
Since: 1.0.0
Located at URIStrategy/IURIStrategy.php

Methods summary

public string[2]
# invoke( object & $requestParameters, string $requestMethod, array $requestHeaders, object|false $requestUser )

Invoke URIStrategy, the implementation of this method MUST associate the request and invoke the apropriate method to handle this request. Invokes to handler method MUST at least define $requestParameters, $requestMethod, $requestHeaders as arguments. NotFoundException SHOULD be when associatation between the request and handler is not defined UnauthorizedException SHOULD be thrown when a request requires authorization

Invoke URIStrategy, the implementation of this method MUST associate the request and invoke the apropriate method to handle this request. Invokes to handler method MUST at least define $requestParameters, $requestMethod, $requestHeaders as arguments. NotFoundException SHOULD be when associatation between the request and handler is not defined UnauthorizedException SHOULD be thrown when a request requires authorization

Parameters

$requestParameters
Request parameters
$requestMethod
HTTP request method
$requestHeaders
Request headers
$requestUser

Use object if successful authenticated otherwise false

Returns

string[2]

This method SHOULD return a tuple specifing at least [$class, $method] on success.

Throws

Phramework\Exceptions\NotFoundException
Phramework\Exceptions\UnauthorizedException
phramework doc API documentation generated by ApiGen