API Documentation

RouteCollection extends BaseFoundationCollection
in package

FinalYes

The RouteCollection contains all the page routes, making it the pseudo-router for Hyde, as it maps each page to the eventual URL that will be used to access it once built.

Tags
template

T of \Hyde\Support\Models\Route

extends

\Hyde\Foundation\Concerns\BaseFoundationCollection<string, T>

see
Router
see
Hyde::routes()

Table of Contents

Properties

$items  : array<string, Route>
$kernel  : HydeKernel

Methods

addRoute()  : void
boot()  : static
get()  : Route|null
getRoute()  : Route
getRoutes()  : RouteCollection
init()  : static
__construct()  : mixed
runDiscovery()  : void
runExtensionHandlers()  : void
setKernel()  : $this

Properties

Methods

__construct()

protected final __construct([array<string|int, mixed>|Arrayable|null $items = [] ]) : mixed
Parameters
$items : array<string|int, mixed>|Arrayable|null = []

        
On this page

Search results