RouteGroup Class

Aurora\Router Namespace

Traits


Properties

prefix

Group prefix

protected $prefix = '': string

groups

Subgroups

protected $groups = []: array

Constructor

__construct

Constructor

Parameters

  • string $prefix — Group prefix

Signature

public function __construct(string $prefix)

Methods

__construct

Constructor

Parameters

  • string $prefix — Group prefix

Signature

public function __construct(string $prefix)

setPrefix

Set the group prefix

Parameters

  • string $prefix — Group prefix

Return Value

  • $this

Signature

public function setPrefix(string $prefix)

group

Create a nested route group

Parameters

  • string $prefix — Group prefix
  • callable $closure — Group definition callback

Return Value

  • \RouteGroup

Signature

public function group(string $prefix, callable $closure): Aurora\Router\RouteGroup

getPrefix

Get group prefix

Return Value

  • string

Signature

public function getPrefix(): string

getRoutes

Get array of routes

Return Value

  • array

Signature

public function getRoutes(): array

getGroups

Get array of groups

Return Value

  • array

Signature

public function getGroups(): array

Go to top