public function pushLogToSession(bool $clean): void
    {
        //====================================================================//
        // Decide if Current Logged User Needs to Be Notified or Not
        if (!$this->isAllowedNotify()) {
            return;
        }
        //====================================================================//
        // Catch Splash Errors
        if (!empty(Splash::log()->err)) {
            foreach (Splash::log()->err as $message) {
                $this->session->getFlashBag()->add('error', $message);
            }
        }
        //====================================================================//
        // Catch Splash Warnings
        if (!empty(Splash::log()->war)) {
            foreach (Splash::log()->war as $message) {
                $this->session->getFlashBag()->add('warning', $message);
            }
        }
        //====================================================================//
        // Catch Splash Messages
        if (!empty(Splash::log()->msg)) {
            foreach (Splash::log()->msg as $message) {
                $this->session->getFlashBag()->add('success', $message);
            }
        }
        //====================================================================//
        // Clear Splash Log
        if ($clean) {
            Splash::log()->cleanLog();
        }
    }
public function pushLogToSession(bool $clean): void
    {
        //====================================================================//
        // Decide if Current Logged User Needs to Be Notified or Not
        if (!$this->isAllowedNotify()) {
            return;
        }
        //====================================================================//
        // Catch Splash Errors
        if (!empty(Splash::log()->err)) {
            foreach (Splash::log()->err as $message) {
                $this->session->getFlashBag()->add('error', $message);
            }
        }
        //====================================================================//
        // Catch Splash Warnings
        if (!empty(Splash::log()->war)) {
            foreach (Splash::log()->war as $message) {
                $this->session->getFlashBag()->add('warning', $message);
            }
        }
        //====================================================================//
        // Catch Splash Messages
        if (!empty(Splash::log()->msg)) {
            foreach (Splash::log()->msg as $message) {
                $this->session->getFlashBag()->add('success', $message);
            }
        }
        //====================================================================//
        // Clear Splash Log
        if ($clean) {
            Splash::log()->cleanLog();
        }
    }
public function pushLogToSession ( bool $ clean ) : void { //====================================================================// // Decide if Current Logged User Needs to Be Notified or Not if ( ! $ this -> isAllowedNotify ( ) ) { return ; } //====================================================================// // Catch Splash Errors if ( ! empty ( Splash :: log ( ) -> err ) ) { foreach ( Splash :: log ( ) -> err as $ message ) { $ this -> session -> getFlashBag ( ) -> add ( 'error' , $ message ) ; } } //====================================================================// // Catch Splash Warnings if ( ! empty ( Splash :: log ( ) -> war ) ) { foreach ( Splash :: log ( ) -> war as $ message ) { $ this -> session -> getFlashBag ( ) -> add ( 'warning' , $ message ) ; } } //====================================================================// // Catch Splash Messages if ( ! empty ( Splash :: log ( ) -> msg ) ) { foreach ( Splash :: log ( ) -> msg as $ message ) { $ this -> session -> getFlashBag ( ) -> add ( 'success' , $ message ) ; } } //====================================================================// // Clear Splash Log if ( $ clean ) { Splash :: log ( ) -> cleanLog ( ) ; } }
Push Splash Log to Symfoiny Session

@param bool $clean Clean Log after Display
Push Splash Log to Symfoiny Session