Overview

Namespaces

  • Autarky
    • Config
      • Loaders
    • Console
    • Container
      • Exception
      • Factory
      • Proxy
    • Database
    • Errors
    • Events
    • Files
    • Http
    • Logging
    • Providers
    • Routing
      • Events
    • Testing
    • TwigTemplating
      • Extensions
    • Utils

Classes

  • Configuration
  • Controller
  • DefaultRouteConfigurator
  • Route
  • RoutePathGenerator
  • Router
  • RoutingProvider
  • UrlGenerator

Interfaces

  • InvokerInterface
  • RoutePathGeneratorInterface
  • RouterInterface

Traits

  • ControllerTrait
  • Overview
  • Namespace
  • Class

Class RoutePathGenerator

Interface for routers that the framework can utilize.

Autarky\Routing\RoutePathGenerator implements Autarky\Routing\RoutePathGeneratorInterface
Namespace: Autarky\Routing
Located at Routing/RoutePathGenerator.php
Methods summary
public
# __construct( FastRoute\RouteParser $routeParser, $validateParams = false )
public
# setValidateParams( boolean $validateParams )

Set whether the regex pattern of route parameters should be validated on runtime.

Set whether the regex pattern of route parameters should be validated on runtime.

Parameters

$validateParams

Implementation of

Autarky\Routing\RoutePathGeneratorInterface::setValidateParams()
public string
# getRoutePath( Autarky\Routing\Route $route, array $params )

Generate the path (relative URL) for a route.

Generate the path (relative URL) for a route.

Parameters

$route
$params

Returns

string

Throws

InvalidArgumentException

Implementation of

Autarky\Routing\RoutePathGeneratorInterface::getRoutePath()
Properties summary
protected FastRoute\RouteParser $routeParser
#
protected boolean $validateParams

Whether the regex pattern of route parameters should be validated on runtime.

Whether the regex pattern of route parameters should be validated on runtime.

#
Autarky Framework API documentation generated by ApiGen