# StrictStd

Chevere\Components\Router\RouteParsers\StrictStd

view source (opens new window)

# Implements

  • FastRoute\RouteParser

# Extends

  • FastRoute\RouteParser\Std

# Description

Strict version of FastRoute\RouteParser\Std, without optional routing.

# Constants

# REGEX_PATH

Type string

'#^\\/$|^\\/(?:[^\\/]+\\/)*[^\\/]*$#'

# VARIABLE_REGEX

Type string

'\\{
    \\s* ([a-zA-Z_][a-zA-Z0-9_-]*) \\s*
    (?:
        : \\s* ([^{}]*(?:\\{(?-1)\\}[^{}]*)*)
    )?
\\}'

# DEFAULT_DISPATCH_REGEX

Type string

'[^/]+'

# Methods

# parse

Parameters

  • route:

Return

void


Last Updated: 5/1/2021, 2:31:10 PM