src/tools/MbEvent.php
public function beforePageDispatcher(MbRequest $mbRequest, MbResponse $mbResponse, MbPage $mbPage)
    {
        $className = static::class;
        $methodName = __METHOD__;
        throw new MbException("{$methodName} not allowed in! {$className}.");
    }
public function beforePageDispatcher(MbRequest $mbRequest, MbResponse $mbResponse, MbPage $mbPage)
    {
        $className = static::class;
        $methodName = __METHOD__;
        throw new MbException("{$methodName} not allowed in! {$className}.");
    }
public function beforePageDispatcher ( MbRequest $ mbRequest , MbResponse $ mbResponse , MbPage $ mbPage ) { $ className = static :: class ; $ methodName = __METHOD__ ; throw new MbException ( "{$methodName} not allowed in! {$className}." ) ; }
Event that will start before running the page

@param MbRequest  $mbRequest
@param MbResponse $mbResponse
@param MbPage     $mbPage

@throws MbException
Event that will start before running the page