src/View/Helper/FlashMessenger.php
protected function getFlashMessengerHelper()
    {
        if ($this->flashMessengerHelper) {
            return $this->flashMessengerHelper;
        }

        if (method_exists($this->view, 'plugin')) {
            $this->flashMessengerHelper = $this->view->plugin(FlashMessengerHelper::class);
        }

        if (!$this->flashMessengerHelper instanceof FlashMessengerHelper) {
            $this->flashMessengerHelper = new FlashMessengerHelper();
        }

        return $this->flashMessengerHelper;
    }
protected function getFlashMessengerHelper()
    {
        if ($this->flashMessengerHelper) {
            return $this->flashMessengerHelper;
        }

        if (method_exists($this->view, 'plugin')) {
            $this->flashMessengerHelper = $this->view->plugin(FlashMessengerHelper::class);
        }

        if (!$this->flashMessengerHelper instanceof FlashMessengerHelper) {
            $this->flashMessengerHelper = new FlashMessengerHelper();
        }

        return $this->flashMessengerHelper;
    }
protected function getFlashMessengerHelper ( ) { if ( $ this -> flashMessengerHelper ) { return $ this -> flashMessengerHelper ; } if ( method_exists ( $ this -> view , 'plugin' ) ) { $ this -> flashMessengerHelper = $ this -> view -> plugin ( FlashMessengerHelper :: class ) ; } if ( ! $ this -> flashMessengerHelper instanceof FlashMessengerHelper ) { $ this -> flashMessengerHelper = new FlashMessengerHelper ( ) ; } return $ this -> flashMessengerHelper ; }
Retrieve the FlashMessenger helper

@return FlashMessengerHelper
Retrieve the FlashMessenger helper