Library/Bullhorn/FastRest/Api/Controllers/Base.php
public function afterExecuteRoute() {
        /** @var \Bullhorn\FastRest\Api\Services\Output\OutputInterface $output */
        $output = $this->getDI()->get(OutputInterface::DI_NAME);
        if(!($output instanceof OutputInterface)) {
            throw new \Exception('The Output must implement: ' . OutputInterface::class);
        }
        $object = $this->getOutputObject();
        $errors = $this->getErrors();
        $code = $this->getStatusCode();

        $object = $this->addErrorsAndStatus($errors, $code, $object);
        $this->response->setStatusCode($object->statusCode, 'Check Document Body For More Details');
        $output->output($object, $this->response);
        $this->view->disable();
    }
public function afterExecuteRoute() {
        /** @var \Bullhorn\FastRest\Api\Services\Output\OutputInterface $output */
        $output = $this->getDI()->get(OutputInterface::DI_NAME);
        if(!($output instanceof OutputInterface)) {
            throw new \Exception('The Output must implement: ' . OutputInterface::class);
        }
        $object = $this->getOutputObject();
        $errors = $this->getErrors();
        $code = $this->getStatusCode();

        $object = $this->addErrorsAndStatus($errors, $code, $object);
        $this->response->setStatusCode($object->statusCode, 'Check Document Body For More Details');
        $output->output($object, $this->response);
        $this->view->disable();
    }
public function afterExecuteRoute ( ) { /** @var \Bullhorn\FastRest\Api\Services\Output\OutputInterface $output */ $ output = $ this -> getDI ( ) -> get ( OutputInterface :: DI_NAME ) ; if ( ! ( $ output instanceof OutputInterface ) ) { throw new \ Exception ( 'The Output must implement: ' . OutputInterface :: class ) ; } $ object = $ this -> getOutputObject ( ) ; $ errors = $ this -> getErrors ( ) ; $ code = $ this -> getStatusCode ( ) ; $ object = $ this -> addErrorsAndStatus ( $ errors , $ code , $ object ) ; $ this -> response -> setStatusCode ( $ object -> statusCode , 'Check Document Body For More Details' ) ; $ output -> output ( $ object , $ this -> response ) ; $ this -> view -> disable ( ) ; }
Executed after it is routed

@return void

@throws \Exception
Executed after it is routed