Menu

## CommandInterface
in package

CommandInterface.php : 16

This is the command interface, it is the entry point for all commands in the framework

##### Tags

author

  Jet - ezrajet9@gmail.com

### Table of Contents

#### Properties

$commands : array<string|int, mixed>|array<string|int, string>
  These are the core commands that are available in the framework

#### Methods

getCommands() : array<string|int, mixed>
setUp() : ConsoleApplication
  Bootstraps the Pionia Command Interface.
addCommand() : void
  Checks if a command is valid and then adds it to the in-built commands stack

### Properties

#### $commands

CommandInterface.php : 22

These are the core commands that are available in the framework

`private array<string|int, mixed>|array<string|int, string> $commands = ['Pionia\\Command\\Commands\\StartServer', 'Pionia\\Command\\Commands\\Generators\\CreateService', 'Pionia\\Command\\Commands\\Generators\\CreateAuthenticationBackend', 'Pionia\\Command\\Commands\\Generators\\CreateMiddleware', 'Pionia\\Command\\Commands\\Generators\\CreateSwitch', 'Pionia\\Command\\Commands\\Frontend\\BuildFrontendCommand', 'Pionia\\Command\\Commands\\Frontend\\DropFrontendCommand', 'Pionia\\Command\\Commands\\Frontend\\ScaffoldFrontendCommand', 'Pionia\\Command\\Commands\\Frontend\\CleanBuildCommand']`

### Methods

#### getCommands()

CommandInterface.php : 38
`public getCommands() : array<string|int, mixed>`

##### Return values

array<string|int, mixed>

#### setUp()

CommandInterface.php : 82

Bootstraps the Pionia Command Interface.

`public static setUp() : ConsoleApplication`

This method is the entry point for all commands in the framework

It also registers all commands registered in the app settings under database.ini

##### Tags

throws
  Exception

##### Return values

ConsoleApplication

#### addCommand()

CommandInterface.php : 48

Checks if a command is valid and then adds it to the in-built commands stack

`private addCommand(string $command) : void`

##### Parameters

$command : string

##### Tags

throws
  CommandException

## Search results