PHP Class Autarky\Routing\Configuration

Afficher le fichier Open project: autarky/framework

Protected Properties

Свойство Type Description
$namespace string | null
$router Autarky\Routing\RouterInterface
$routes array

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
registerRoute ( $route, $name )
registerRoutes ( )

Method Details

__construct() public méthode

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

merge() public méthode

Merge more routes into the configuration.
public merge ( array $routes ) : void
$routes array
Résultat void

mount() public méthode

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

override() public méthode

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

registerRoute() protected méthode

protected registerRoute ( $route, $name )

registerRoutes() protected méthode

protected registerRoutes ( )

Property Details

$namespace protected_oe property

protected string|null $namespace
Résultat string | null

$router protected_oe property

protected RouterInterface,Autarky\Routing $router
Résultat Autarky\Routing\RouterInterface

$routes protected_oe property

protected array $routes
Résultat array