protected function getAssetsUrl($inputUrl)
    {
        /** @var $assets \Symfony\Component\Templating\Helper\CoreAssetsHelper */
        $assets = $this->getService('assets.packages');

        $url = preg_replace('/^asset\[(.+)\]$/i', '$1', $inputUrl);

        if ($inputUrl !== $url) {
            return $assets->getUrl($this->baseUrl . $url);
        }

        return $inputUrl;
    }
protected function getAssetsUrl($inputUrl)
    {
        /** @var $assets \Symfony\Component\Templating\Helper\CoreAssetsHelper */
        $assets = $this->getService('assets.packages');

        $url = preg_replace('/^asset\[(.+)\]$/i', '$1', $inputUrl);

        if ($inputUrl !== $url) {
            return $assets->getUrl($this->baseUrl . $url);
        }

        return $inputUrl;
    }
protected function getAssetsUrl ( $ inputUrl ) { /** @var $assets \Symfony\Component\Templating\Helper\CoreAssetsHelper */ $ assets = $ this -> getService ( 'assets.packages' ) ; $ url = preg_replace ( '/^asset\[(.+)\]$/i' , '$1' , $ inputUrl ) ; if ( $ inputUrl !== $ url ) { return $ assets -> getUrl ( $ this -> baseUrl . $ url ) ; } return $ inputUrl ; }
Get url from config string

@param string $inputUrl

@return string
Get url from config string