src/Phlexible/Bundle/GuiBundle/Controller/AssetController.php
public function cssMapAction(Request $request)
    {
        $baseUrlContentFilter = $this->get('phlexible_gui.asset.base_url_content_filter');
        $baseUrlContentFilter->setBasePath($request->getBasePath());
        $baseUrlContentFilter->setBaseUrl($request->getBaseUrl());

        $cssBuilder = $this->get('phlexible_gui.asset.css_builder');

        $asset = $cssBuilder->build();

        return new BinaryFileResponse($asset->getMapAsset(), 200, array('Content-Type' => 'application/json;charset=UTF-8'));
    }
public function cssMapAction(Request $request)
    {
        $baseUrlContentFilter = $this->get('phlexible_gui.asset.base_url_content_filter');
        $baseUrlContentFilter->setBasePath($request->getBasePath());
        $baseUrlContentFilter->setBaseUrl($request->getBaseUrl());

        $cssBuilder = $this->get('phlexible_gui.asset.css_builder');

        $asset = $cssBuilder->build();

        return new BinaryFileResponse($asset->getMapAsset(), 200, array('Content-Type' => 'application/json;charset=UTF-8'));
    }
public function cssMapAction ( Request $ request ) { $ baseUrlContentFilter = $ this -> get ( 'phlexible_gui.asset.base_url_content_filter' ) ; $ baseUrlContentFilter -> setBasePath ( $ request -> getBasePath ( ) ) ; $ baseUrlContentFilter -> setBaseUrl ( $ request -> getBaseUrl ( ) ) ; $ cssBuilder = $ this -> get ( 'phlexible_gui.asset.css_builder' ) ; $ asset = $ cssBuilder -> build ( ) ; return new BinaryFileResponse ( $ asset -> getMapAsset ( ) , 200 , array ( 'Content-Type' => 'application/json;charset=UTF-8' ) ) ; }
Output css map.

@param Request $request

@return Response
@Route("/gui.css.map", name="asset_css_map")
Output css map .