protected static function triggerAopEvent(
        $controller_id,
        $action_name,
        $request = null,
        $response = null
    ) {
    
        $context = [
            'controller_id' => $controller_id,
            'action_id' => $action_name,
        ];
        if ($request) {
            $context['request'] = $request;
        }
        if ($response) {
            $context['response'] = $response;
        }
        Lb::app()->trigger(
            Event::AOP_EVENT . '_' . implode('@', [$controller_id, $action_name]),
            new AopEvent($context)
        );
        Lb::app()->trigger(
            Event::REQUEST_EVENT,
            new RequestEvent($context)
        );
    }
protected static function triggerAopEvent(
        $controller_id,
        $action_name,
        $request = null,
        $response = null
    ) {
    
        $context = [
            'controller_id' => $controller_id,
            'action_id' => $action_name,
        ];
        if ($request) {
            $context['request'] = $request;
        }
        if ($response) {
            $context['response'] = $response;
        }
        Lb::app()->trigger(
            Event::AOP_EVENT . '_' . implode('@', [$controller_id, $action_name]),
            new AopEvent($context)
        );
        Lb::app()->trigger(
            Event::REQUEST_EVENT,
            new RequestEvent($context)
        );
    }
protected static function triggerAopEvent ( $ controller_id , $ action_name , $ request = null , $ response = null ) { $ context = [ 'controller_id' => $ controller_id , 'action_id' => $ action_name , ] ; if ( $ request ) { $ context [ 'request' ] = $ request ; } if ( $ response ) { $ context [ 'response' ] = $ response ; } Lb :: app ( ) -> trigger ( Event :: AOP_EVENT . '_' . implode ( '@' , [ $ controller_id , $ action_name ] ) , new AopEvent ( $ context ) ) ; Lb :: app ( ) -> trigger ( Event :: REQUEST_EVENT , new RequestEvent ( $ context ) ) ; }
Trigger AOP Event

@param $controller_id
@param $action_name
@param null          $request
@param null          $response
Trigger AOP Event