protected function fireFinalEvent($name = null, $resource = null)
    {
        if (empty($name)) {
            $name = $this->getEventName();
        }
        if (empty($resource)) {
            $resource = $this->getEventResource();
        }
        /** @noinspection PhpUnusedLocalVariableInspection */
        $results = \Event::fire(new ApiEvent($name, $this->request, $this->response, $resource));
    }
protected function fireFinalEvent($name = null, $resource = null)
    {
        if (empty($name)) {
            $name = $this->getEventName();
        }
        if (empty($resource)) {
            $resource = $this->getEventResource();
        }
        /** @noinspection PhpUnusedLocalVariableInspection */
        $results = \Event::fire(new ApiEvent($name, $this->request, $this->response, $resource));
    }
protected function fireFinalEvent ( $ name = null , $ resource = null ) { if ( empty ( $ name ) ) { $ name = $ this -> getEventName ( ) ; } if ( empty ( $ resource ) ) { $ resource = $ this -> getEventResource ( ) ; } /** @noinspection PhpUnusedLocalVariableInspection */ $ results = \ Event :: fire ( new ApiEvent ( $ name , $ this -> request , $ this -> response , $ resource ) ) ; }
Fires last event before responding
@param string|null $name     Optional name to append
@param string|null $resource Optional override for resource
Fires last event before responding