src/Controller/ElFinderController.php
protected function getAssetsUrl($inputUrl)
    {
        /** @var $assets \Symfony\Component\Templating\Helper\CoreAssetsHelper */
        $assets = $this->container->get('templating.helper.assets');

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

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

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

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

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

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

@param string $inputUrl

@return string
Get url from config string .