Primordyx Framework Documentation

CommandRegistry
in package

Table of Contents

Properties

$commands  : array<string, CommandInterface>

Methods

__construct()  : mixed
Initialize the registry with all available commands
getCommands()  : array<string, CommandInterface>
Get all registered commands
register()  : void
Register a command
run()  : void
Run a command based on arguments

Properties

Methods

__construct()

Initialize the registry with all available commands

public __construct() : mixed

run()

Run a command based on arguments

public run(array<string|int, mixed> $args) : void
Parameters
$args : array<string|int, mixed>

        
On this page

Search results