public function get($path)
    {
        // Make sure we have a file
        if (empty($path)) {
            return null;
        }

        // Generate file URL
        $url = $this->urlProvider->getUrlFromPath($path);

        // Validate file URL
        if (! filter_var($url, FILTER_VALIDATE_URL)) {
            return null;
        }

        return $url;
    }
public function get($path)
    {
        // Make sure we have a file
        if (empty($path)) {
            return null;
        }

        // Generate file URL
        $url = $this->urlProvider->getUrlFromPath($path);

        // Validate file URL
        if (! filter_var($url, FILTER_VALIDATE_URL)) {
            return null;
        }

        return $url;
    }
public function get ( $ path ) { // Make sure we have a file if ( empty ( $ path ) ) { return null ; } // Generate file URL $ url = $ this -> urlProvider -> getUrlFromPath ( $ path ) ; // Validate file URL if ( ! filter_var ( $ url , FILTER_VALIDATE_URL ) ) { return null ; } return $ url ; }
Generate the url from the asset path.

@author Casper Rasmussen <cr@nodes.dk>

@param  string $path

@return string|null
Generate the url from the asset path .