Class Kitab\Bin\Bin
class Bin
{
public static function main();
protected static function setErrorHandler();
protected static function getRouter(): Hoa\Router\Cli;
protected static function getDispatcher(): Hoa\Dispatcher\ClassMethod;
protected static function exitWith(string $message, int $code);
}
Run the sub commands of the kitab command.
A sub command must be a class declared in the Kitab\Bin namespace. Its
run public method —the entry method— will be called to run the sub
command.
Any exception thrown will be outputed in php://stderr with a brilliant
colour.
Methods
-
public static function main() -
Call the sub command.
-
protected static function setErrorHandler() -
Use the Hoa default error and exception handlers.
-
protected static function getRouter(): Hoa\Router\Cli -
protected static function getDispatcher(): Hoa\Dispatcher\ClassMethod -
protected static function exitWith(string $message, int $code)