Пример #1
0
 /**
  * @param string     $message
  * @param null|array $args
  * @param bool       $end_line
  * @param bool       $output
  */
 static function writeReplace($message, $args = NULL, $end_line = FALSE, $output = TRUE)
 {
     if (Kohana_Helpers_Core::isCLI() && self::classExists()) {
         $args = Kohana_Helpers_Arr::asArray($args);
         if ($output) {
             Kohana_Minion_CLI::write_replace(self::date() . strtr($message, $args), $end_line);
         } elseif (FALSE !== ($logLevel = self::config('cli.log.replace', static::$logReplace))) {
             Kohana::$log->add($logLevel, $message, $args);
         }
     }
 }
Пример #2
0
 /**
  * @return array
  */
 public static function getMethodsParseBody()
 {
     return Kohana_Helpers_Arr::asArray(static::config('request.methods.parseBody'));
 }