Pionia Core

CommandInterface
in package

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

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()

public getCommands() : array<string|int, mixed>
Return values
array<string|int, mixed>

setUp()

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()

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

        
On this page

Search results