FrontBundle/Controller/BlockController.php
public function showAction(Request $request, $siteId, $nodeId, $blockId)
    {
        try {
            $block = $this->get('open_orchestra_model.repository.block')->findById($blockId);

            $response = $this->get('open_orchestra_display.display_block_manager')->show($block);
            $this->tagResponse($block, $nodeId, $siteId, $request->getLocale());

            return $response;
        } catch (\Exception $e) {
            throw new DisplayBlockException($e->getMessage(), $e->getCode(), $e);
        }
    }
public function showAction(Request $request, $siteId, $nodeId, $blockId)
    {
        try {
            $block = $this->get('open_orchestra_model.repository.block')->findById($blockId);

            $response = $this->get('open_orchestra_display.display_block_manager')->show($block);
            $this->tagResponse($block, $nodeId, $siteId, $request->getLocale());

            return $response;
        } catch (\Exception $e) {
            throw new DisplayBlockException($e->getMessage(), $e->getCode(), $e);
        }
    }
public function showAction ( Request $ request , $ siteId , $ nodeId , $ blockId ) { try { $ block = $ this -> get ( 'open_orchestra_model.repository.block' ) -> findById ( $ blockId ) ; $ response = $ this -> get ( 'open_orchestra_display.display_block_manager' ) -> show ( $ block ) ; $ this -> tagResponse ( $ block , $ nodeId , $ siteId , $ request -> getLocale ( ) ) ; return $ response ; } catch ( \ Exception $ e ) { throw new DisplayBlockException ( $ e -> getMessage ( ) , $ e -> getCode ( ) , $ e ) ; } }
Display the response linked to a block

@param Request $request
@param string  $siteId
@param string  $nodeId
@param string  $blockId

@Config\Route("/block/{siteId}/{nodeId}/{blockId}/{_locale}", name="open_orchestra_front_block")
@Config\Method({"GET", "POST"})

@throws DisplayBlockException
@return Response
Display the response linked to a block