src/Money/Component/Controller/Money.php
public function runBefore()
    {
        parent::runBefore();

        User::checkAuthentication();

        $this->layoutPackage = Config::getInstance()->get('Eureka\Global\Theme\php\layout');
        $this->appTheme      = Config::getInstance()->get('Eureka\Global\Theme\php\theme');
        $this->appTplPath    = EKA_PKG_MONEY . EKA_SEP . 'Module' . EKA_SEP . $this->getModuleName() . EKA_SEP . 'Template' . EKA_SEP . $this->appTheme;
        $this->appLayoutPath = $this->layoutPackage . 'Template' . EKA_SEP . $this->appTheme;

        $this->breadcrumb    = new Breadcrumb();
        $this->navMenu       = new Menu();
        $this->navForm       = new MenuForm();
        $this->notifications = new NotificationCollection();
        $this->dataCollection->add('breadcrumb', $this->breadcrumb);
        $this->dataCollection->add('navMenu', $this->navMenu);
        $this->dataCollection->add('navForm', $this->navForm);
        $this->dataCollection->add('notifications', $this->notifications);

        $session = Session::getInstance();

        if ($session->hasEphemeral('notification')) {
            $notification = $session->getEphemeral('notification');
            $notification = unserialize($notification);
            if ($notification instanceof NotificationInterface) {
                $this->notifications->add($notification);
            }
        }
    }
public function runBefore()
    {
        parent::runBefore();

        User::checkAuthentication();

        $this->layoutPackage = Config::getInstance()->get('Eureka\Global\Theme\php\layout');
        $this->appTheme      = Config::getInstance()->get('Eureka\Global\Theme\php\theme');
        $this->appTplPath    = EKA_PKG_MONEY . EKA_SEP . 'Module' . EKA_SEP . $this->getModuleName() . EKA_SEP . 'Template' . EKA_SEP . $this->appTheme;
        $this->appLayoutPath = $this->layoutPackage . 'Template' . EKA_SEP . $this->appTheme;

        $this->breadcrumb    = new Breadcrumb();
        $this->navMenu       = new Menu();
        $this->navForm       = new MenuForm();
        $this->notifications = new NotificationCollection();
        $this->dataCollection->add('breadcrumb', $this->breadcrumb);
        $this->dataCollection->add('navMenu', $this->navMenu);
        $this->dataCollection->add('navForm', $this->navForm);
        $this->dataCollection->add('notifications', $this->notifications);

        $session = Session::getInstance();

        if ($session->hasEphemeral('notification')) {
            $notification = $session->getEphemeral('notification');
            $notification = unserialize($notification);
            if ($notification instanceof NotificationInterface) {
                $this->notifications->add($notification);
            }
        }
    }
Before method. Always called before each action.

@return void