Property | Type | Description | |
---|---|---|---|
$appendExceedingArguments | boolean | Specifies whether Route Values, that are not part of the Routes configuration, should be appended as query string | |
$defaults | array | Default values | |
$httpMethods | If not empty only the specified HTTP verbs are accepted by this route | ||
$isParsed | boolean | For better performance, routes are only parsed if needed. | |
$lowerCase | boolean | Specifies whether Route Parts of this Route should be converted to lower case when resolved. | |
$matchResults | array | Contains the routing results (indexed by "package", "controller" and "action") after a successful call of matches() | |
$name | string | Route name | |
$objectManager | Neos\Flow\ObjectManagement\ObjectManagerInterface | ||
$persistenceManager | Neos\Flow\Persistence\PersistenceManagerInterface | ||
$resolvedUriPath | string | Contains the matching uri (excluding protocol and host) after a successful call of resolves() | |
$routeParts | array | Container for Route Parts. | |
$routePartsConfiguration | array | Contains associative array of Route Part options (key: Route Part name, value: array of Route Part options) | |
$uriPattern | string | URI Pattern of this route |
Method | Description | |
---|---|---|
getAppendExceedingArguments ( ) : boolean | Returns TRUE if exceeding arguments should be appended to the URI as query string, otherwise FALSE | |
getDefaults ( ) : array | Returns default values for this Route. | |
getHttpMethods ( ) : array | ||
getMatchResults ( ) : array | Returns an array with the Route match results. | |
getName ( ) : string | Returns the name of this Route. | |
getResolvedUriPath ( ) : string | Returns the URI path which corresponds to this Route. | |
getRoutePartsConfiguration ( ) : array | Returns the route parts configuration of this route | |
getUriPattern ( ) : string | Returns the URI pattern this route should match with | |
hasHttpMethodConstraints ( ) : boolean | Whether or not this route is limited to one or more HTTP verbs | |
isLowerCase ( ) : boolean | Getter for $this->lowerCase. | |
matches ( |
Checks whether $routePath corresponds to this Route. | |
parse ( ) : void | Iterates through all segments in $this->uriPattern and creates appropriate RoutePart instances. | |
resolves ( array $routeValues ) : boolean | Checks whether $routeValues can be resolved to a corresponding uri. | |
setAppendExceedingArguments ( boolean $appendExceedingArguments ) : void | Specifies whether Route values, that are not part of the Route configuration, should be appended to the Resulting URI as query string. | |
setDefaults ( array $defaults ) : void | Sets default values for this Route. | |
setHttpMethods ( array $httpMethods ) : void | Limits the HTTP verbs that are accepted by this route. | |
setLowerCase ( boolean $lowerCase ) : void | Specifies whether Route parts of this route should be converted to lower case when resolved. | |
setName ( string $name ) : void | Sets Route name. | |
setRoutePartsConfiguration ( array $routePartsConfiguration ) : void | By default all Dynamic Route Parts are resolved by \Neos\Flow\Mvc\Routing\DynamicRoutePart. | |
setUriPattern ( string $uriPattern ) : void | Sets the URI pattern this route should match with |
Method | Description | |
---|---|---|
compareAndRemoveMatchingDefaultValues ( array $defaults, array &$routeValues ) : boolean | Recursively iterates through the defaults of this route. | |
containsObject ( mixed $subject ) : boolean | Checks if the given subject contains an object | |
extractInternalArguments ( array &$arguments ) : array | Removes all internal arguments (prefixed with two underscores) from the given $arguments and returns them as array |
protected containsObject ( mixed $subject ) : boolean | ||
$subject | mixed | |
return | boolean | If it contains an object or not |
protected extractInternalArguments ( array &$arguments ) : array | ||
$arguments | array | |
return | array | the internal arguments |
public getAppendExceedingArguments ( ) : boolean | ||
return | boolean |
public getDefaults ( ) : array | ||
return | array | Route defaults |
public getMatchResults ( ) : array | ||
return | array | An array of Route Parts and their values for further handling by the Router |
public getResolvedUriPath ( ) : string | ||
return | string | A string containing the corresponding uri (excluding protocol and host) |
public getRoutePartsConfiguration ( ) : array | ||
return | array | $routePartsConfiguration |
public getUriPattern ( ) : string | ||
return | string | the URI pattern |
public hasHttpMethodConstraints ( ) : boolean | ||
return | boolean |
public isLowerCase ( ) : boolean | ||
return | boolean | TRUE if this Route part will be converted to lower case, otherwise FALSE. |
public setAppendExceedingArguments ( boolean $appendExceedingArguments ) : void | ||
$appendExceedingArguments | boolean | TRUE: exceeding arguments will be appended to the resulting URI |
return | void |
public setDefaults ( array $defaults ) : void | ||
$defaults | array | |
return | void |
public setHttpMethods ( array $httpMethods ) : void | ||
$httpMethods | array | non-associative array in the format array('GET', 'POST', ...) |
return | void |
public setLowerCase ( boolean $lowerCase ) : void | ||
$lowerCase | boolean | TRUE: Route parts are converted to lower case by default. FALSE: Route parts are not altered. |
return | void |
public setRoutePartsConfiguration ( array $routePartsConfiguration ) : void | ||
$routePartsConfiguration | array | Route Parts configuration options |
return | void |
public setUriPattern ( string $uriPattern ) : void | ||
$uriPattern | string | |
return | void |
protected bool $appendExceedingArguments | ||
return | boolean |
protected $httpMethods |
protected bool $isParsed | ||
return | boolean |
protected bool $lowerCase | ||
return | boolean |
protected array $matchResults | ||
return | array |
protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager | ||
return | Neos\Flow\ObjectManagement\ObjectManagerInterface |
protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager | ||
return | Neos\Flow\Persistence\PersistenceManagerInterface |
protected string $resolvedUriPath | ||
return | string |
protected array $routePartsConfiguration | ||
return | array |