Overview

The CLI equivalent of a front-controller to find and invoke a command (technically a sub-command).

Package

This class is part of the Solar_Controller package.

Inheritance:

Configuration Keys

  • classes: Base class names for commands.

  • routing: An array of commands to class names.

  • disable: An array of command names to disallow.

  • default: The default command to run.

Constants

None.

Public Properties

The Solar_Controller_Console class has no public properties; try the list of all properties.

Public Methods

These are all the public methods in the Solar_Controller_Console class.

You can also view the list of all public, protected, and private methods.

__construct()

Constructor.

__destruct()

Default destructor; does nothing other than provide a safe fallback for calls to parent::__destruct().

dump()

Convenience method for getting a dump the whole object, or one of its properties, or an external variable.

exec()

Finds and invokes a command.

getCommandList()

Returns a list of commands recognized by this console controller, and the related classes for those commands.

locale()

Looks up class-specific locale strings based on a key.



Local