Routes class

Framework\CLI\Commands\Routes

Class Routes.

Extends Framework\CLI\Command

Defined in libraries/dev-commands/src/Routes.php

Properties #

$name
-
$description
-
$usage
-
$routerInstance
-
$group
-

$name

protected string $name = 'routes'

$description

protected string $description = 'Shows routes list.'

$usage

protected string $usage = 'routes [options]'

$routerInstance

protected string $routerInstance = 'default'

$group

protected string $group = 'Routing'

Methods #

run()
-
collectData()
-
showCollectionsSet()
-
writeHeader()
-

run()

public function run(): void
Returns void

collectData()

protected function collectData(): array
Returns array

showCollectionsSet()

protected function showCollectionsSet(int $count): void
Parameters
  • int $count
Returns void

writeHeader()

protected function writeHeader(string $field, string $value): void
Parameters
  • string $field
  • string $value
Returns void

Inherited methods #