Example #1
0
 /**
  * Extend CLImate with custom methods
  *
  * @param string|object|array $class
  * @param string $key Optional custom key instead of class name
  *
  * @return \League\CLImate\CLImate
  */
 public function extend($class, $key = null)
 {
     $this->router->addExtension($key, $class);
     return $this;
 }