src/Apnet/AsseticImporterBundle/Twig/Extension/ImporterExtension.php
public function importedAsset($path, $parameters = array())
  {
    if ($this->useController) {
      $path = $this->router->generate(
        "_assetic_" . $this->res->getFormulaeName($path),
        $parameters
      );
    } else {
      $path = $this->assets->getAssetUrl(
        ltrim($path, "/")
      );
    }

    return $path;
  }
public function importedAsset($path, $parameters = array())
  {
    if ($this->useController) {
      $path = $this->router->generate(
        "_assetic_" . $this->res->getFormulaeName($path),
        $parameters
      );
    } else {
      $path = $this->assets->getAssetUrl(
        ltrim($path, "/")
      );
    }

    return $path;
  }
public function importedAsset ( $ path , $ parameters = array ( ) ) { if ( $ this -> useController ) { $ path = $ this -> router -> generate ( "_assetic_" . $ this -> res -> getFormulaeName ( $ path ) , $ parameters ) ; } else { $ path = $ this -> assets -> getAssetUrl ( ltrim ( $ path , "/" ) ) ; } return $ path ; }
Return absolute path to imported asset

@param string $path       Target import path
@param array  $parameters Parameters

@return string
Return absolute path to imported asset