Skip to content
barryo edited this page Apr 25, 2013 · 2 revisions

This trait is useful for controllers that are providing CLI only actions. It does the following:

  • ensures the SAPI is CLI only (i.e. not CGI);
  • provides logging functions ($this->verbose() and $this->debug()) which are aware of whether the user has requested verbose / debug logging.

See the source file here.

This is typically used via a CLI script such as:

Clone this wiki locally