src/Security/Security.php
public function setSessionMessage(
        $message,
        $messageType = ValidationResult::TYPE_WARNING,
        $messageCast = ValidationResult::CAST_TEXT
    ) {
        Controller::curr()
            ->getRequest()
            ->getSession()
            ->set("Security.Message.message", $message)
            ->set("Security.Message.type", $messageType)
            ->set("Security.Message.cast", $messageCast);
    }
public function setSessionMessage(
        $message,
        $messageType = ValidationResult::TYPE_WARNING,
        $messageCast = ValidationResult::CAST_TEXT
    ) {
        Controller::curr()
            ->getRequest()
            ->getSession()
            ->set("Security.Message.message", $message)
            ->set("Security.Message.type", $messageType)
            ->set("Security.Message.cast", $messageCast);
    }
public function setSessionMessage ( $ message , $ messageType = ValidationResult :: TYPE_WARNING , $ messageCast = ValidationResult :: CAST_TEXT ) { Controller :: curr ( ) -> getRequest ( ) -> getSession ( ) -> set ( "Security.Message.message" , $ message ) -> set ( "Security.Message.type" , $ messageType ) -> set ( "Security.Message.cast" , $ messageCast ) ; }
Set the next message to display for the security login page. Defaults to warning

@param string $message Message
@param string $messageType Message type. One of ValidationResult::TYPE_*
@param string $messageCast Message cast. One of ValidationResult::CAST_*
Set the next message to display for the security login page . Defaults to warning