protected function _afterControllerAdd(AnCommandContext $context)
    {
        $data = $context->data;

        if ($data->composed && $data->story) {
            if ($context->response->isRedirect()) {
                $context->response->setStatus(AnHttpResponse::OK);
                $context->response->removeHeader('Location');
            }

            $content = $this->_renderComposedStory($data->story);
            $context->response->setContent($content);
        }
    }
protected function _afterControllerAdd(AnCommandContext $context)
    {
        $data = $context->data;

        if ($data->composed && $data->story) {
            if ($context->response->isRedirect()) {
                $context->response->setStatus(AnHttpResponse::OK);
                $context->response->removeHeader('Location');
            }

            $content = $this->_renderComposedStory($data->story);
            $context->response->setContent($content);
        }
    }
protected function _afterControllerAdd ( AnCommandContext $ context ) { $ data = $ context -> data ; if ( $ data -> composed && $ data -> story ) { if ( $ context -> response -> isRedirect ( ) ) { $ context -> response -> setStatus ( AnHttpResponse :: OK ) ; $ context -> response -> removeHeader ( 'Location' ) ; } $ content = $ this -> _renderComposedStory ( $ data -> story ) ; $ context -> response -> setContent ( $ content ) ; } }
Renders a story after an entity is created through composer.

@param AnCommandContext $context Context parameter
Renders a story after an entity is created through composer .