Beispiel #1
0
 public function __construct(CssMinifier $minifier)
 {
     $this->reMatch = "/(^|\\s)+(" . implode("|", array_keys($this->transformation)) . ")(\\s|\$)+/eiS";
     parent::__construct($minifier);
 }
Beispiel #2
0
	/**
	 * Overwrites {@link aCssMinifierPlugin::__construct()}.
	 *
	 * The constructor will create the {@link CssConvertFontWeightMinifierPlugin::$reReplace replace regular expression}
	 * based on the {@link CssConvertFontWeightMinifierPlugin::$transformation transformation table}.
	 *
	 * @param CssMinifier $minifier The CssMinifier object of this plugin.
	 * @return void
	 */
	public function __construct(CssMinifier $minifier)
		{
		$this->reMatch = '/(^|\s)+(' . implode("|", array_keys($this->transformation)). ')(\s|$)+/eiS';
		parent::__construct($minifier);
		}