library/ProcessStrategy/ForwardProcessorStrategy.php
public function postProcess(ProcessEvent $e)
    {
        $appEvent       = clone $e->getWorker()->getEvent();
        $appEvent->setTarget($appEvent->getApplication());

        $appEvents      = $appEvent->getApplication()->getEventManager();

        $appResponse    = clone $appEvent->getResponse();
        $appEvent->setResponse($appResponse);
        $appEvent->setResult($e->getResult());

        $appEvents->trigger(MvcEvent::EVENT_RENDER, $appEvent);

        $e->setResult($appEvent->getResponse()->getContent());

        if (Console::isConsole() && is_string($e->getResult())) {
            echo $e->getResult();
        }
    }
public function postProcess(ProcessEvent $e)
    {
        $appEvent       = clone $e->getWorker()->getEvent();
        $appEvent->setTarget($appEvent->getApplication());

        $appEvents      = $appEvent->getApplication()->getEventManager();

        $appResponse    = clone $appEvent->getResponse();
        $appEvent->setResponse($appResponse);
        $appEvent->setResult($e->getResult());

        $appEvents->trigger(MvcEvent::EVENT_RENDER, $appEvent);

        $e->setResult($appEvent->getResponse()->getContent());

        if (Console::isConsole() && is_string($e->getResult())) {
            echo $e->getResult();
        }
    }
public function postProcess ( ProcessEvent $ e ) { $ appEvent = clone $ e -> getWorker ( ) -> getEvent ( ) ; $ appEvent -> setTarget ( $ appEvent -> getApplication ( ) ) ; $ appEvents = $ appEvent -> getApplication ( ) -> getEventManager ( ) ; $ appResponse = clone $ appEvent -> getResponse ( ) ; $ appEvent -> setResponse ( $ appResponse ) ; $ appEvent -> setResult ( $ e -> getResult ( ) ) ; $ appEvents -> trigger ( MvcEvent :: EVENT_RENDER , $ appEvent ) ; $ e -> setResult ( $ appEvent -> getResponse ( ) -> getContent ( ) ) ; if ( Console :: isConsole ( ) && is_string ( $ e -> getResult ( ) ) ) { echo $ e -> getResult ( ) ; } }
Render the processor result.

The result is rendered triggering a "render" event on a cloned MvcEvent,
simulating the usual MVC render flow.

@todo investigate if simulation works in all cases
@param ProcessEvent $e
Render the processor result .