protected function firePreProcessEvent($name = null, $resource = null)
    {
        if (empty($name)) {
            $name = $this->getEventName();
        }
        if (empty($resource)) {
            $resource = $this->getEventResource();
        }
        $event = new PreProcessApiEvent($name, $this->request, $this->response, $resource);
        /** @noinspection PhpUnusedLocalVariableInspection */
        $results = \Event::fire($event);
        $this->response = $event->response;
    }
protected function firePreProcessEvent($name = null, $resource = null)
    {
        if (empty($name)) {
            $name = $this->getEventName();
        }
        if (empty($resource)) {
            $resource = $this->getEventResource();
        }
        $event = new PreProcessApiEvent($name, $this->request, $this->response, $resource);
        /** @noinspection PhpUnusedLocalVariableInspection */
        $results = \Event::fire($event);
        $this->response = $event->response;
    }
protected function firePreProcessEvent ( $ name = null , $ resource = null ) { if ( empty ( $ name ) ) { $ name = $ this -> getEventName ( ) ; } if ( empty ( $ resource ) ) { $ resource = $ this -> getEventResource ( ) ; } $ event = new PreProcessApiEvent ( $ name , $ this -> request , $ this -> response , $ resource ) ; /** @noinspection PhpUnusedLocalVariableInspection */ $ results = \ Event :: fire ( $ event ) ; $ this -> response = $ event -> response ; }
Fires pre process event
@param string|null $name     Optional override for name
@param string|null $resource Optional override for resource
Fires pre process event