Add a warning message.

@param $text
@param array $context
431750
public function w($text, $context = array())
    {
        $this->log->warn($text, $context);
        $this->emit(self::SIGNAL_WARNING_ENTERED);
    }
83606
public function addAlert($message, array $context = array())
    {
        return $this->_instance->addRecord(\Monolog\Logger::ALERT, $message, $context);
    }
1340519
public function warning($message, array $context = [])
    {
        $this->checkInitialized();

        foreach ($this->loggers as $logger) {
            $logger->warning($message, $context);
        }
    }
283789
public void setText(String text) {
        span.setText(text);

        if (!span.isAttached()) {
            add(span);
        }
    }
1300888
public function warning($message, array $context = array())
    {
        if ($this->logger) {
            $context = $this->getLoggerContext($context);

            $this->logger->warning($message, $context);
        }
    }
987042
public function critical($message, array $context = []) {
        $this->logger->critical($this->prefixMessage($message), $context);
    }
687422
public function notice($message, array $context = array())
    {
        if ($this->logger) {
            $context = $this->getLoggerContext($context);

            $this->logger->notice($message, $context);
        }
    }
233379
function warning( $text, $position = false )
    {
        if ( $position )
        {
            $str = $position['file'] . ':' . $position['from'][0] . ' C' . $position['from'][1];
            if ( isset( $position['to'] ) )
                $str .= ' -> L' . $position['to'][0] . ' C' . $position['to'][1];
            $str .= ':';
        }
        $str .= $text;
        if ( class_exists( 'ezcli' ) )
        {
            $cli = eZCLI::instance();
            $cli->warning( $str );
        }
        else
        {
            eZDebug::writeWarning( $str, __METHOD__ );
        }
    }
1340521
protected function insertTextBefore($text, $node)
	{
		if ($text > '')
		{
			$node->parentNode->insertBefore($this->createText($text), $node);
		}
	}
1250055
public function addContext(Context $context) {
    $contexts = $this->get('contextOut');
    $contexts[] = $context;
    $this->add('contextOut', $contexts);
  }
1212785
public function alert($message, array $context = array()) {
        $context['fromClass'] = get_called_class();
        foreach ($this->loggersInstances as $logger) {
            $logger->alert($message, $context);
        }
    }
1044945
protected function error( $text, $pos = null ) {
		if ( !$this->ignoreErrors ) {
			if ( $pos === null ) {
				$pos = $this->pos;
			}
			$this->listener->error( $text, $pos );
		}
	}
1094582
public function addRaw($text)
	{
		$this->response[] = array(
			'message' => $text
		);

		if ($this->isInteractive())
		{
			$this->render(true);
		}
	}
1253408
public function warn(string $text, array $style = []): string
    {
        return $this->line($text, ['fg' => static::YELLOW] + $style);
    }
471016
protected function message($text)
    {
        if (Controller::curr() instanceof DatabaseAdmin) {
            DB::alteration_message($text, 'obsolete');
        } else {
            Debug::message($text);
        }
    }
1030527
public static function parse($text, $context = null)
    {
        if (!static::$_enabled || strpos($text, '{') === false) {
            return $text;
        }

        if ($context === null) {
            $context = static::_getDefaultContext();
        }

        static::cache('context', $context);
        $pattern = static::_regex();

        return preg_replace_callback("/{$pattern}/s", 'static::_doShortcode', $text);
    }
1164796
protected function addContextToMessages()
    {
        $context = $this->getContextMessage();

        if ($context === []) {
            return;
        }

        foreach ($this->messages as &$message) {
            $message[0] = ArrayHelper::merge($context, $this->parseText($message[0]));
        }
    }