protected function getUrlPathFromConfig($urlConfig)
    {
        $urlPath = parent::getUrlPathFromConfig($urlConfig);

        try {
            $path = is_array($urlPath)
                ? $urlPath[0]
                : $urlPath;

            $arguments = (
                is_array($urlPath) &&
                isset($urlPath[1]) &&
                is_array($urlPath[1])
            )
                ? $urlPath[1]
                : [];

            $urlPath = $this
                ->router
                ->generate($path, $arguments);
        } catch (ExceptionInterface $e) {

            /**
             * Silent pass
             */
        }

        return $urlPath;
    }
protected function getUrlPathFromConfig($urlConfig)
    {
        $urlPath = parent::getUrlPathFromConfig($urlConfig);

        try {
            $path = is_array($urlPath)
                ? $urlPath[0]
                : $urlPath;

            $arguments = (
                is_array($urlPath) &&
                isset($urlPath[1]) &&
                is_array($urlPath[1])
            )
                ? $urlPath[1]
                : [];

            $urlPath = $this
                ->router
                ->generate($path, $arguments);
        } catch (ExceptionInterface $e) {

            /**
             * Silent pass
             */
        }

        return $urlPath;
    }
protected function getUrlPathFromConfig ( $ urlConfig ) { $ urlPath = parent :: getUrlPathFromConfig ( $ urlConfig ) ; try { $ path = is_array ( $ urlPath ) ? $ urlPath [ 0 ] : $ urlPath ; $ arguments = ( is_array ( $ urlPath ) && isset ( $ urlPath [ 1 ] ) && is_array ( $ urlPath [ 1 ] ) ) ? $ urlPath [ 1 ] : [ ] ; $ urlPath = $ this -> router -> generate ( $ path , $ arguments ) ; } catch ( ExceptionInterface $ e ) { /**
             * Silent pass
             */ } return $ urlPath ; }
Build the url given the configuration data

@param mixed $urlConfig Url configuration

@return string Route path
Build the url given the configuration data