Copied!

UriParserInterface

UriParserInterface.php : 13

Methods

publicgetAttributeFromUri()

UriParserInterface.php : 18
public getAttributeFromUri(string $uri, string $attribute[, string $method = 'GET' ]) : string

Parameters

Name Type Default value Description
$uri string - -
$attribute string - -
$method string 'GET' -

Return values

string

Tags
Throws
InvalidArgumentException

If $attribute wasn't found in the matched URI attributes

publichasRestPrefix()

UriParserInterface.php : 22
public hasRestPrefix(string $uri) : bool

Parameters

Name Type Default value Description
$uri string - -

Return values

bool

publicisRestRequest()

UriParserInterface.php : 20
public isRestRequest(Request $request) : bool

Parameters

Name Type Default value Description
$request Request - -

Return values

bool