CodeIgniter v4.5 API

AutoRouteCollector
in package

FinalYes

Collects data for Auto Routing Improved.

Tags
see
AutoRouteCollectorTest

Table of Contents

Properties

$defaultController  : string
$defaultMethod  : string
$httpMethods  : array<string|int, mixed>
$namespace  : string
$prefix  : string
$protectedControllers  : array<string|int, mixed>

Methods

__construct()  : mixed
get()  : array<int, array<int, string>>
addFilters()  : array<int, array<string, array<string|int, mixed>|string>>
Adding Filters
generateSampleUri()  : string

Properties

$protectedControllers read-only

private array<string|int, mixed> $protectedControllers

Methods

__construct()

public __construct(string $namespace, string $defaultController, string $defaultMethod, array<int, string> $httpMethods, array<int, class-string> $protectedControllers[, string $prefix = '' ]) : mixed
Parameters
$namespace : string

namespace to search

$defaultController : string
$defaultMethod : string
$httpMethods : array<int, string>
$protectedControllers : array<int, class-string>

List of controllers in Defined Routes that should not be accessed via Auto-Routing.

$prefix : string = ''

URI prefix for Module Routing

get()

public get() : array<int, array<int, string>>
Return values
array<int, array<int, string>>

addFilters()

Adding Filters

private addFilters(array<int, array<string, array<string|int, mixed>|string>> $routes) : array<int, array<string, array<string|int, mixed>|string>>
Parameters
$routes : array<int, array<string, array<string|int, mixed>|string>>
Return values
array<int, array<string, array<string|int, mixed>|string>>

generateSampleUri()

private generateSampleUri(array<string|int, mixed> $route[, bool $longest = true ]) : string
Parameters
$route : array<string|int, mixed>
$longest : bool = true
Return values
string

        
On this page

Search results