src/MvcRouteListener.php
/**
     * Trigger the authorization.post event
     *
     * @param MvcEvent $mvcEvent
     * @return null|Response
     */
Trigger the authorization.post event
@param MvcEvent $mvcEvent
@return null|Response
Trigger the authorization . post event @param MvcEvent $mvcEvent @return null|Response
public function authorizationPost(MvcEvent $mvcEvent)
    {
        if (! $mvcEvent->getRequest() instanceof HttpRequest
            || $mvcEvent->getRequest()->isOptions()
        ) {
            return;
        }
        $mvcAuthEvent = $this->mvcAuthEvent;
        $mvcAuthEvent->setName($mvcAuthEvent::EVENT_AUTHORIZATION_POST);
        $responses = $this->events->triggerEventUntil(function ($r) {
            return ($r instanceof Response);
        }, $mvcAuthEvent);
        return $responses->last();
    }
public function authorizationPost ( MvcEvent $ mvcEvent ) { if ( ! $ mvcEvent -> getRequest ( ) instanceof HttpRequest || $ mvcEvent -> getRequest ( ) -> isOptions ( ) ) { return ; } $ mvcAuthEvent = $ this -> mvcAuthEvent ; $ mvcAuthEvent -> setName ( $ mvcAuthEvent :: EVENT_AUTHORIZATION_POST ) ; $ responses = $ this -> events -> triggerEventUntil ( function ( $ r ) { return ( $ r instanceof Response ) ; } , $ mvcAuthEvent ) ; return $ responses -> last ( ) ; }
Trigger the authorization.post event
 @param MvcEvent $mvcEvent
 @return null|Response
Trigger the authorization . post event @param MvcEvent $mvcEvent @return null|Response