/** * Constructor * * @param */ public function __construct(MinifyServiceInterface $minifyService, $config) { $this->minifyService = $minifyService; $this->minifyConfig = $config; $this->minifyEnabled = $this->minifyConfig['minifyJS']['enabled']; $this->minifyDocRootDir = trim($this->minifyConfig['docRootDir'], '/\\ '); $this->minifyDocRootPath = getcwd() . '/' . $this->minifyDocRootDir . '/'; $this->minifyCacheDir = trim($this->minifyConfig['cacheDir'], '/\\ '); $this->minifyCachePath = $this->minifyDocRootPath . $this->minifyCacheDir; if (!file_exists($this->minifyCachePath) && mkdir($this->minifyCachePath, 0755, true) === false) { throw new \Exception("Cache dir does not exist and could not be created - '{$this->minifyCachePath}'"); } if (!is_writable($this->minifyCachePath)) { throw new \Exception("Cache path not writable - '{$this->minifyCachePath}'"); } parent::__construct(); }
/** * @param array $cdnOptions */ public function __construct($cdnOptions = []) { $this->setCdnOptions($cdnOptions); parent::__construct(); }
/** * Constructor * * @param ThemeInfo $themeInfo Theme information service * @param string|bool $plconfig Config for current application environment */ public function __construct(ThemeInfo $themeInfo, $plconfig = false) { parent::__construct(); $this->themeInfo = $themeInfo; $this->usePipeline = $this->enabledInConfig($plconfig); }
/** * Constructor * * @param ThemeInfo $themeInfo Theme information service */ public function __construct(ThemeInfo $themeInfo) { parent::__construct(); $this->themeInfo = $themeInfo; }
/** * Constructor */ public function __construct(ScriptsConfig $config) { parent::__construct(); $this->config = $config; }