PHP 클래스 Autarky\Routing\Configuration

파일 보기 프로젝트 열기: autarky/framework

보호된 프로퍼티들

프로퍼티 타입 설명
$namespace string | null
$router Autarky\Routing\RouterInterface
$routes array

공개 메소드들

메소드 설명
__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.

보호된 메소드들

메소드 설명
registerRoute ( $route, $name )
registerRoutes ( )

메소드 상세

__construct() 공개 메소드

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

merge() 공개 메소드

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

mount() 공개 메소드

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

override() 공개 메소드

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

registerRoute() 보호된 메소드

protected registerRoute ( $route, $name )

registerRoutes() 보호된 메소드

protected registerRoutes ( )

프로퍼티 상세

$namespace 보호되어 있는 프로퍼티

protected string|null $namespace
리턴 string | null

$router 보호되어 있는 프로퍼티

protected RouterInterface,Autarky\Routing $router
리턴 Autarky\Routing\RouterInterface

$routes 보호되어 있는 프로퍼티

protected array $routes
리턴 array