public function onDispatchError(MvcEvent $e)
    {
        $ex = $e->getParam('exception');
        $model = $e->getResult();

        if ($model instanceof ViewModel
            && Application::ERROR_EXCEPTION == $e->getError()
            && 0 === strpos($ex->getMessage(), 'Your application id and secret')
        ) {
            $model->setTemplate('auth/error/social-profiles-unconfigured');
        }
    }
public function onDispatchError(MvcEvent $e)
    {
        $ex = $e->getParam('exception');
        $model = $e->getResult();

        if ($model instanceof ViewModel
            && Application::ERROR_EXCEPTION == $e->getError()
            && 0 === strpos($ex->getMessage(), 'Your application id and secret')
        ) {
            $model->setTemplate('auth/error/social-profiles-unconfigured');
        }
    }
public function onDispatchError ( MvcEvent $ e ) { $ ex = $ e -> getParam ( 'exception' ) ; $ model = $ e -> getResult ( ) ; if ( $ model instanceof ViewModel && Application :: ERROR_EXCEPTION == $ e -> getError ( ) && 0 === strpos ( $ ex -> getMessage ( ) , 'Your application id and secret' ) ) { $ model -> setTemplate ( 'auth/error/social-profiles-unconfigured' ) ; } }
Sets a specific view template if social network login is unconfigured.

@param MvcEvent $e
Sets a specific view template if social network login is unconfigured .