PHP Class Autarky\Routing\Configuration

Datei anzeigen Open project: autarky/framework

Protected Properties

Property Type Description
$namespace string | null
$router Autarky\Routing\RouterInterface
$routes array

Public Methods

Method Description
__construct ( Autarky\Routing\RouterInterface $router, array $routes, string | null $namespace = null )
merge ( array $routes ) : void Merge more routes into the configuration.
mount ( string | null $prefix = null ) : void Mount the configuration.
override ( string $name, array $routeData ) : void Override an existing route.

Protected Methods

Method Description
registerRoute ( $route, $name )
registerRoutes ( )

Method Details

__construct() public method

public __construct ( Autarky\Routing\RouterInterface $router, array $routes, string | null $namespace = null )
$router Autarky\Routing\RouterInterface
$routes array
$namespace string | null

merge() public method

Merge more routes into the configuration.
public merge ( array $routes ) : void
$routes array
return void

mount() public method

Mount the configuration.
public mount ( string | null $prefix = null ) : void
$prefix string | null
return void

override() public method

Override an existing route.
public override ( string $name, array $routeData ) : void
$name string
$routeData array
return void

registerRoute() protected method

protected registerRoute ( $route, $name )

registerRoutes() protected method

protected registerRoutes ( )

Property Details

$namespace protected_oe property

protected string|null $namespace
return string | null

$router protected_oe property

protected RouterInterface,Autarky\Routing $router
return Autarky\Routing\RouterInterface

$routes protected_oe property

protected array $routes
return array