protected function _getRoute(AssetTarget $file, $base)
    {
        $query = [];

        if ($file->isThemed()) {
            $query['theme'] = $this->theme;
        }

        $base = rtrim($base, '/') . '/';
        $query = empty($query) ? '' : '?' . http_build_query($query);

        return $base . $file->name() . $query;
    }
protected function _getRoute(AssetTarget $file, $base)
    {
        $query = [];

        if ($file->isThemed()) {
            $query['theme'] = $this->theme;
        }

        $base = rtrim($base, '/') . '/';
        $query = empty($query) ? '' : '?' . http_build_query($query);

        return $base . $file->name() . $query;
    }
protected function _getRoute ( AssetTarget $ file , $ base ) { $ query = [ ] ; if ( $ file -> isThemed ( ) ) { $ query [ 'theme' ] = $ this -> theme ; } $ base = rtrim ( $ base , '/' ) . '/' ; $ query = empty ( $ query ) ? '' : '?' . http_build_query ( $ query ) ; return $ base . $ file -> name ( ) . $ query ; }
Get the dynamic build path for an asset.

This generates URLs that work with the development dispatcher filter.

@param \MiniAsset\AssetTarget $file The build file you want to make a url for.
@param string $base The base path to fetch a url with.
@return string Generated URL.
Get the dynamic build path for an asset .