Pimcore\Logger::warn PHP Method

warn() public static method

public static warn ( $m, $context = [] )
    public static function warn($m, $context = [])
    {
        self::log($m, "warning", $context);
    }

Usage Example

Example #1
1
 /**
  * Deletes a single parameter which was set with "setParams" or "setParam"
  *
  * @param string | integer $key
  * @return \Pimcore\Mail Provides fluent interface
  */
 public function unsetParam($key)
 {
     if (is_string($key) || is_integer($key)) {
         unset($this->params[$key]);
     } else {
         \Logger::warn('$key has to be a string - unsetParam ignored!');
     }
     return $this;
 }
All Usage Examples Of Pimcore\Logger::warn