/**
  * Constructor.
  *
  * @param string|array $baseUrls    Base asset URLs
  * @param string       $rootDir     The asset root directory
  * @param string       $summaryFile Grunt filerev summary file
  * @param string       $cacheDir    Kernel cache dir
  * @param string       $debug       Debug?
  */
 public function __construct($baseUrls = array(), $rootDir, $summaryFile, $cacheDir, $debug)
 {
     parent::__construct($rootDir, $summaryFile, $cacheDir, $debug);
     if (!is_array($baseUrls)) {
         $baseUrls = (array) $baseUrls;
     }
     $this->baseUrls = array();
     foreach ($baseUrls as $baseUrl) {
         $this->baseUrls[] = rtrim($baseUrl, '/');
     }
 }
 /**
  * Constructor.
  *
  * @param Request $request     The base path to be prepended to relative paths
  * @param string  $rootDir     The asset root directory
  * @param string  $summaryFile Grunt filerev summary file
  * @param string  $cacheDir    Kernel cache dir
  * @param string  $debug       Debug?
  */
 public function __construct(Request $request, $rootDir, $summaryFile, $cacheDir, $debug)
 {
     parent::__construct($rootDir, $summaryFile, $cacheDir, $debug);
     $basePath = $request->getBasePath();
     if (!$basePath) {
         $this->basePath = '/';
     } else {
         if ('/' != $basePath[0]) {
             $basePath = '/' . $basePath;
         }
         $this->basePath = rtrim($basePath, '/') . '/';
     }
 }