Class logging
Class CLI
Your commandline script should inherit from this class and implement the abstract methods.
- splitbrain\phpcli\CLI
- Extended by logging
protected
#
setup( splitbrain\phpcli\Options
$options )
Register options and arguments on the given $options object
Register options and arguments on the given $options object
Parameters
- $options
Throws
Exception
protected
#
main( splitbrain\phpcli\Options
$options )
Your main program
Your main program
Arguments and options have been parsed when this is run
Parameters
- $options
Throws
Exception
__construct(),
alert(),
checkArgments(),
critical(),
debug(),
emergency(),
error(),
execute(),
fatal(),
handleDefaultOptions(),
info(),
interpolate(),
log(),
notice(),
parseOptions(),
registerDefaultOptions(),
run(),
setupLogging(),
success(),
warning()