Ejemplo n.º 1
0
 /**
  * @param int $contentCss Set default contentCss if its not set before
  * @return mixed
  */
 public function getContentCss($contentCss = null)
 {
     $css = array('@EnhavoAppBundle/Resources/public/css/editor.css');
     if (is_string($this->contentCss)) {
         $css[] = $this->contentCss;
     } elseif (is_array($this->contentCss)) {
         $css = array_merge($css, $this->contentCss);
     } elseif (is_string($contentCss)) {
         $css[] = $contentCss;
     } elseif (is_array($contentCss)) {
         $css = array_merge($css, $contentCss);
     }
     foreach ($css as &$path) {
         $path = Assetic::convertPathToAsset($path);
     }
     return $css;
 }
Ejemplo n.º 2
0
 public function render($path)
 {
     $path = Assetic::convertPathToAsset($path);
     return $path;
 }