public function setAction($action)
{
$this->action = (string) $action;
}
/** * Sets the action. * * @param ContaoContext $context * @param int $level */ private function updateAction(ContaoContext $context, $level) { if (null !== $context->getAction()) { return; } if ($level >= Logger::ERROR) { $context->setAction(ContaoContext::ERROR); } else { $context->setAction(ContaoContext::GENERAL); } }