/** * Constructor. * * @param string $rootDir The asset root directory * @param string $summaryFile Grunt filerev summary file * @param string $cacheDir Kernel cache dir * @param bool $debug Debug */ public function __construct($rootDir, $summaryFile, $cacheDir, $debug) { parent::__construct(); $this->rootDir = $rootDir; $this->summaryFile = $summaryFile; $this->cacheDir = $cacheDir; $this->debug = $debug; $this->initializeCacheCatalogue(); }
/** * Constructor. * * @param string $basePath The base path to be prepended to relative paths * @param string $version The package version * @param string $format The format used to apply the version */ public function __construct($basePath = null, $version = null, $format = null) { parent::__construct($version, $format); if (!$basePath) { $this->basePath = '/'; } else { if ('/' != $basePath[0]) { $basePath = '/' . $basePath; } $this->basePath = rtrim($basePath, '/') . '/'; } }