Exemplo n.º 1
0
 /**
  * @param array $opts  Driver specific options:
  * <pre>
  *   - cmdline: (string) Command-line options to pass to binary.
  *   - sourcemap: (string) The URL to the web-accessible location the
  *                sourcemap file will be stored at.
  *   - uglifyjs: (string) [REQUIRED] Path to the UglifyJS binary.
  * </pre>
  */
 public function setOptions(array $opts = array())
 {
     if (!isset($opts['uglifyjs'])) {
         throw new InvalidArgumentException('Missing required uglifyjs option.');
     }
     parent::setOptions($opts);
 }
Exemplo n.º 2
0
 /**
  * @param array $opts  Driver specific options:
  * <pre>
  *   - cmdline: (string) Command line arguments to use.
  *   - java: (string) [REQUIRED] Path to the java binary.
  *   - yui: (string) [REQUIRED] Path to the YUI compressor.
  * </pre>
  */
 public function setOptions(array $opts = array())
 {
     foreach (array('java', 'yui') as $val) {
         if (!isset($opts[$val])) {
             throw new InvalidArgumentException(sprintf('Missing required %s option.', $val));
         }
     }
     parent::setOptions($opts);
 }