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()
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 #
-
__construct()fromFramework\CLI\Command -
getConsole()fromFramework\CLI\Command -
setConsole()fromFramework\CLI\Command -
getName()fromFramework\CLI\Command -
setName()fromFramework\CLI\Command -
getGroup()fromFramework\CLI\Command -
setGroup()fromFramework\CLI\Command -
getDescription()fromFramework\CLI\Command -
setDescription()fromFramework\CLI\Command -
getUsage()fromFramework\CLI\Command -
setUsage()fromFramework\CLI\Command -
getOptions()fromFramework\CLI\Command -
setOptions()fromFramework\CLI\Command -
isActive()fromFramework\CLI\Command -
activate()fromFramework\CLI\Command -
deactivate()fromFramework\CLI\Command